Composants
Separator
A line between groups of content, horizontal or vertical, decorative by default.
Web uniquement — React, depuis @krizaka/ui/separator. Stable : son API ne change qu’à une version majeure.
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 tailwindcssStyles
@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
Props
Ce module n'a pas de props de composant : voir l'import et l'aperçu ci-dessus.
Accessibilité
- Radix Separator: decorative by default (
role="none");decorative={false}givesrole="separator"and its orientation.
Bonnes pratiques
- Prefer space to lines; a separator marks a change of group.
decorative={false}only when the separation means something to a screen-reader user.
Composants liés
Générée depuis le code de @krizaka/ui 3.9.0 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub