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.
Project information
- Project categories: Content editing experience
11 sites report using this module
- Created by rob holmes on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.

