- Accordion
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Checkbox
- Combobox
- Container
- CurrencyInput
- DistributionSlider
- Drawer
- Dropdown
- Grid
- Heading
- Image
- Input
- InputGroup
- Label
- Logo
- MapPin
- Modal
- NativeSelect
- NumberInput
- OtpInput
- PhoneInput
- Popover
- Progress
- PropertyCalendar
- RadioGroup
- RadioGroupCards
- ResponsiveModal
- ScrollArea
- SearchBar
- SearchBarFallback
- SearchInput
- Select
- Separator
- Spinner
- Switch
- Tabs
- Text
- Textarea
- Toast
- Toggle
- ToggleGroup
- Tooltip
Separator
A visual divider that separates content sections horizontally or vertically
pnpm add @wandercom/design-system-web
import { Separator } from '@wandercom/design-system-web/ui/separator';
export function Example() {
return (
<div>
<div className="space-y-1">
<h4 className="text-lg font-medium">Wander Design System</h4>
<p className="text-sm text-secondary">A component library for web</p>
</div>
<Separator className="my-4" />
<div className="flex h-5 items-center space-x-4 text-sm">
<div>Documentation</div>
<Separator orientation="vertical" />
<div>Components</div>
</div>
</div>
);
}Loading example...
The Separator renders as a 1px line using bg-border-secondary. Use horizontal separators to divide stacked content sections, and vertical separators to separate inline elements. Both orientations are shown above.
orientation?
'horizontal' | 'vertical'
The orientation of the separator. Defaults to horizontal.
decorative?
boolean
Whether the separator is purely decorative. When true, accessibility-related attributes are updated so that the rendered element is removed from the accessibility tree. Defaults to true.
className?
string
Additional CSS classes to apply.
The Separator component is built on the Radix UI Separator primitive, which follows WAI-ARIA separator role guidelines.
- Renders with
role="separator"whendecorativeisfalse, providing semantic meaning to assistive technologies - When
decorativeistrue(the default), the element is removed from the accessibility tree usingrole="none"since it serves no semantic purpose - Set
decorative={false}when the separator conveys meaningful structure, such as dividing distinct sections of a page - Supports both
horizontalandverticalorientations, witharia-orientationset accordingly when non-decorative