separator
Separator
Draws a thin horizontal or vertical line between groups of content, hidden from screen readers unless it carries meaning.
States: Default
Parts
| Part | File | Does |
|---|---|---|
| Separator | Separator.vue | Divides content into distinct sections. |
Styling
| Part | Recipe |
|---|---|
| Separator | separator |
Install
Writes 2 files into components/ui/separator/. For agents, npx @frontic/ui docs separator prints this reference as markdown; the MCP server serves the same.
- npm packages
- @vueuse/core
- class-variance-authority
- reka-ui
API reference
Separator Separator.vue
Divides content into distinct sections.
| Prop | Type | Default | |
|---|---|---|---|
| orientation | DataOrientation | 'horizontal' | |
| decorative | boolean | true | |
| asChild | boolean | false | |
| as | AsTag | Component | — | |
| class | ClassValue | — | |
| Recipe separator | Sets | |
|---|---|---|
| base: separator | 2 properties · 1 inherited | |
| orientation: horizontaldefault | 2 properties | |
| orientation: vertical | 2 properties | |
Example