Separator
A hairline, horizontal or vertical, optionally with a label.
import
import { Separator } from '@joshicodes/cock';Orientations
or
Drafts Published Archived
API
Read out of the component sources at build time, so it matches the version you installed.
Every component also takes class, merged
through tailwind-merge so your utility wins.
Props of Separator
| Prop | Type | Default |
|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' |
class | string | — |
Snippets of Separator
| Snippet | Type | Default |
|---|---|---|
children Optional label rendered in the middle of a horizontal rule. | Snippet | — |