Krizaka UI
Krizaka UI
ComposantsFondations

Separator

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

Web · ✓Mobile · ✗ à construireBureau · ✓StableMise en page
Domaine
Fondations
Niveau de support
Stable
Taille
0.9 kB gzip, budget 2.6 kB
Qui l'utilise
1 fichiers des produits et sites en production l'importent (Folioviv : 1) Compté dans l'inventaire daté du 2026-11-23.
import { Separator } from "@krizaka/ui/separator";

Account

Notifications

Web uniquement — React, depuis @krizaka/ui/separator. Stable : son API ne change qu’à une version majeure.

  • Mobile · ✗ à construire. A hairline between rows; Sovkora's settings group draws its own. issue #275

Pourquoi il est là. A primitive of the platform: dividers inside menus, lists and cards.

Quand l’utiliser

  • Between groups of a list or a menu.
  • Between items of a toolbar or a row of links (orientation="vertical").

Quand ne pas l’utiliser

  • To separate every item of a list: use spacing.
  • To separate items of a menu.À la place : Dropdown menu

Installation

Installer

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Importer

import { Separator } from "@krizaka/ui/separator";

Exemples

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

PropTypeDéfautDescription
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).

Accessibilité

  • Radix Separator: decorative by default (role="none"); decorative={false} gives role="separator" and its orientation.

Bonnes pratiques

  • 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.

Générée depuis le code de @krizaka/ui 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page