ComponentsFoundations
Separator
A line between groups of content, horizontal or vertical, decorative by default.
- Domain
- Foundations
- Support level
- Size
- 0.9 kB gzip, budget 2.6 kB
- Who uses it
- 1 files of the live products and sites import it (Folioviv: 1) Counted in the dated inventory of 2026-11-23.
import { Separator } from "@krizaka/ui/separator";Account
Notifications
Web only — React, from @krizaka/ui/separator. Stable: its API only changes in a major version.
- Mobile · ✗ to build. A hairline between rows; Sovkora's settings group draws its own. issue #275
Why it is here. A primitive of the platform: dividers inside menus, lists and cards.
When to use
- Between groups of a list or a menu.
- Between items of a toolbar or a row of links (
orientation="vertical").
When not to use
- To separate every item of a list: use spacing.
- To separate items of a menu.Use instead: Dropdown menu
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { Separator } from "@krizaka/ui/separator";Examples
Horizontal
Between two groups.
Account
Notifications
Vertical
Between items of a row, as real separators.
VideosLiveShop
Drawn by hand
variant="hand": stroke, wave or dash, 6 px tall, the hue at 60 % or the ink.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
shape | "stroke" | "wave" | "dash" | stroke | variant="hand": the stroke's shape. |
tone | "hue" | "ink" | hue | variant="hand": the page's hue at 60 %, or the ink. |
variant | "line" | "hand" | line | line — a hairline; hand — drawn by hand (horizontal only). |
Accessibility
- Radix Separator: decorative by default (
role="none");decorative={false}givesrole="separator"and its orientation.
Best practices
- Prefer space to lines; a separator marks a change of group.
variant="hand"(the Cahier) between the body sections of a page, one shape per page; it is decorative and its height is fixed, so nothing shifts.decorative={false}only when the separation means something to a screen-reader user.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub