Separator
A thin divider between groups of content, horizontal or vertical.
Status: stable. Category: Layout.
import { Separator } from '@glyphui/ui'
Exports: Separator, separatorStyles.
Notes
- Decorative by default. Set decorative={false} when the divider separates meaningful sections.
Separator props
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean |
Example: Horizontal and vertical
import { Separator, Text } from '@glyphui/ui'
export default function Example() {
return (
<div className="grid max-w-sm gap-3">
<Text weight="medium">Acme Inc.</Text>
<Separator />
<div className="flex h-5 items-center gap-3 text-small text-muted-foreground">
<span>Docs</span>
<Separator orientation="vertical" />
<span>Changelog</span>
<Separator orientation="vertical" />
<span>Status</span>
</div>
</div>
)
}
Live page: https://glyphui.xyz/components/separator