Krizaka UI
Krizaka UI
ComponentsFoundations

Separator

A line between groups of content, horizontal or vertical, decorative by default.

Web · ✓Mobile · ✗ to buildDesktop · ✓StableLayout
Support level
Stable
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 tailwindcss

Styles

@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

PropTypeDefaultDescription
shape"stroke" | "wave" | "dash"strokevariant="hand": the stroke's shape.
tone"hue" | "ink"huevariant="hand": the page's hue at 60 %, or the ink.
variant"line" | "hand"lineline — a hairline; hand — drawn by hand (horizontal only).

Accessibility

  • Radix Separator: decorative by default (role="none"); decorative={false} gives role="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.

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page