A simple paragraph type that allows the user to insert a horizontal rule <hr> into the page.
By default there are two possible horizontal rule 'types' (CSS classes) that can be applied to the paragraph.
- Thin (hr--thin)
- Thick (hr--thick)
These values can be altered via the hook_paragraphs_hr_allowed_values_alter function.
e.g.
function MODULE_paragraphs_hr_allowed_values_alter (&$options) {
$options = [
'class1' => 'Class 1',
'class2' => 'Class 2',
'class3' => 'Class 3',
'class4' => 'Class 4'
];
}
Note: The site's theme is responsible for providing the CSS styles associated with the defined CSS classes.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Paragraphs ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 2.0.0 | Stable | Jul 31, 2023 |