Separator
RoomsSpa
npx shadcn add @klarhimmel/separatorCopy for AIExamples
Basic
Vertical
Menu
DetailsAbout, usage, props and more
A hairline between groups, horizontal or vertical.
When to use
Use for
A visual break between groups inside one section.
Not for
Separating sections. Use headings and space.
Pairs with
Menus, toolbars, lists.
Preview
Exempelhotellet
A small hotel by the water.
Reception is open 07:00 to 22:00, every day.
Import
Import
- Files
- separator.tsx, in components/klarhimmel/ui/. With it: theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | A vertical one needs a parent with a height, such as a flex row. |
decorative | boolean | true | Purely visual by default (hidden from assistive tech). Set false when the rule marks a real change of topic. |
className | string | - | Extra classes, merged after the component's own. |