Skip to content

Separator

Visually or semantically separates content. A thin, accessible divider built on Radix UI.

$cookest-ui add separator

Horizontal

Default orientation — separates content above and below.

Cookest UI

A food-grade design system.

Components
Tokens
Examples

Vertical

Use orientation='vertical' to separate inline content side by side.

Breakfast
Lunch
Dinner
Snacks

In Recipe Card

Use Separator to structure recipe metadata cleanly.

Pasta Carbonara

Classic Roman pasta with eggs and guanciale

🕐 25 min
🍽 4 servings
⚡ 640 kcal
PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the separator line.
decorativebooleantrueWhen true, the separator is hidden from screen readers (purely visual).
classNamestringCustom CSS classes to override spacing, colour, or size.