Separator
Visually or semantically separates content.
bext/ui
An open-source component library.
Blog
Docs
Source
Separator — trait fin (border-b ou border-l selon orientation) pour séparer visuellement des sections.
Installation
$ bext ui add separator
Copy and paste the following into src/components/ui/separator.tsx.
Usage
Anatomy
<Separator vertical? />
API Reference
Separator
| Prop | Type | Default | Description |
|---|---|---|---|
| vertical | boolean | — | Si true : w-px h-full (vertical). Sinon h-px w-full (horizontal, défaut). |
| className | string | — | undefined |
Accessibility
role="separator" par défaut. Purement décoratif — les AT le mentionnent brièvement mais sans importance.
Edit this example live in the bext playground — it compiles and runs entirely in your browser.
The React idiom — same UI, for comparison.
On This Page