Part of the Paragraphs ecosystem · 89 projects
This module provides a paragraph type that allows users to insert a horizontal rule into their content. You can choose from predefined styles or customize them via hooks to match your theme's design.
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.
Ask your assistant about Paragraphs Horizontal Rule
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
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 | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.0 | Stable | 8–10 | Jul 31, 2023 |