-
Notifications
You must be signed in to change notification settings - Fork 1
Divider
Lenny P. edited this page May 17, 2025
·
1 revision
The Divider component renders a horizontal rule (<hr>) to visually separate content sections. If content is provided in the slot, it displays the text centered between two horizontal lines. It supports dark mode styling and accepts additional HTML attributes.
<x-divider />
<x-divider>Section Title</x-divider>- Additional HTML attributes
You can pass any valid HTML attributes (like classes or IDs) which will be merged with the default styles.
This Divider component provides a clean and customizable way to separate content visually. It supports a simple horizontal line or a labeled divider with text in the middle, adapting its style for light and dark modes using Tailwind CSS.