Base Components
Divider
A versatile divider component used to create visual separation between content.
Create a divider.tsx
file and paste the following code into it.
/components/ui/divider.tsx
Update the import paths to match your project setup.
Examples
Line (Default)
A simple horizontal line.
Line Spacing
A line with spacing.
Line Text
A line with text in between.
OR
Text
Text only divider.
OR
Solid Text
A solid background with text. Often used in modals.
Amount & Account
Content
A line with content on center.
API Reference
Divider.Root
This component is based on the <div>
element and supports all of its props. And adds:
Prop | Type | Default |
---|---|---|
variant | "line" |"line-spacing" |"line-text" |"content" |"text" |"solid-text" | 'line' |
© 2024 AlignUI Design System. All rights reserved.