Separator: Align
align moves the label to the start or end, which suits section and date headers. Icons are sized to the text.
Today
Yesterday
Last week
This adds the example as components/examples/separator/align.tsx, together with the Separator component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/separator-align.jsonTo add only the component, follow the Separator installation.
Props in this example
The Separator props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
alignWhere the label sits along the line. | "start" | "center" | "end" | "center" |
Every prop is in the Separator API reference.
See them all, with keyboard support and accessibility notes, on the Separator page.
- AccordionStacked headings that each reveal a panel, with height motion you can reverse mid-way and panels that stay searchable while closed.
- Aspect ratioA box that holds its shape before media loads, shimmers while loading, fades the media in and falls back when it fails.
- CarouselNative scroll-snap slides with momentum on touch, mouse dragging, arrow keys, dots, thumbnails and an autoplay that pauses when it should.
- CollapsibleA panel that shows and hides with height motion you can reverse mid-way, without jumping the layout.
- ResizablePanels you can drag apart, with a quiet divider that wakes up on hover, sizes that glide on reset or collapse, and layouts that persist.
- Scroll areaNative scrolling with a minimal scrollbar, edges that fade only where there’s more to see, and an optional peek that cuts the last item in half.