A visual separator for grouping content. Available in horizontal and vertical orientations, two colours, four thicknesses, and full or inset lengths.
Loading demo: divider-real-world
npx sdaia-ui@latest add divider
import { Divider } from '@/components/ui/Divider';<Divider />Horizontal divider spanning the full container width.
Loading demo: divider-default
Vertical divider used to separate inline content.
Loading demo: divider-vertical
Divider in Hairline, Thin, Regular, and Thick weights.
Loading demo: divider-thicknesses
Inset divider with padding on both sides.
Loading demo: divider-inset
Props for the Divider component.
Prop | Type | Default | Required |
|---|---|---|---|
lineType | 'horizontal' | 'vertical' | 'horizontal' | optional |
color | 'neutral' | 'primary' | 'neutral' | optional |
thickness | 'hairline' | 'thin' | 'regular' | 'thick' | 'hairline' | optional |
length | 'full' | 'inset' | 'inset-start' | 'inset-end' | 'full' | optional |
rtl | boolean | false | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | A horizontal divider fills the width of its container; a vertical one fills the height of its row. Thickness is 2, 4 or 8px. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same. The inset spacing uses the mobile token values. |