Skip to content
Primitives

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

PropTypeDefault
orientation
'horizontal' | 'vertical''horizontal'
class
string—

Snippets of Separator

SnippetTypeDefault
children

Optional label rendered in the middle of a horizontal rule.

Snippet—

See also

cock. Yes, it stands for core component kit. We checked twice.