Component
Separator
Divides content with a horizontal or vertical rule.
Install
Run the CLI to copy the source into your project.
pnpm dlx @stalk-ui/cli add @stalk-ui/separatorExamples
Live previews render through the docs app's PandaCSS codegen.
<div style={{ width: 320 }}> <div style={{ color: 'var(--colors-fg-default)' }}>Stalk UI</div> <Separator style={{ marginBlock: 12 }} /> <div style={{ color: 'var(--colors-fg-muted)' }}> An accessible, PandaCSS-native component library. </div> </div>
<div style={{ alignItems: 'center', color: 'var(--colors-fg-default)', display: 'flex', gap: 12, height: 20, }} > <span>Docs</span> <Separator orientation="vertical" /> <span>Storybook</span> <Separator orientation="vertical" /> <span>GitHub</span> </div>
Props
Public component props extracted from the source TypeScript types.
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| `orientation` | `SeparatorOrientation` | No | - | - |
Variants
Variant axes exposed by the underlying PandaCSS recipe or slot recipe.
| Variant | Values |
|---|---|
| `orientation` | `horizontal`, `vertical` |
Registry
Files this component contributes to your registry install.
- Manifest: `/r/separator.json`
- Recipe: `separator`
- Files: `src/components/ui/separator.tsx`