Skip to content
satin

Separator

A thin rule between blocks, across or down, with an optional word in the middle.

Workspace

Name, logo and the URL people sign in at.

Members

Who can see and edit this workspace.

Installation

Terminal
npm i @uisatin/ui
Import
import { Separator } from '@uisatin/ui/separator'

About 9.6 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.

First time with Satin? Set it up once, styles and fonts included, with the installation guide.

API Reference

The Separator component is a 1px rule. It is decorative unless decorative={false}, which makes it a role="separator".

PropTypeDefault
orientation
"horizontal""vertical"
"horizontal"
label
ReactNode
—
decorative
boolean
true
className
string
—
ref
Ref<HTMLDivElement>
—
...props
ComponentProps<'div'>

Other attributes go to <div>

—

Accessibility

Decorative by default: role="none", so screen readers skip it. With decorative={false} it is role="separator" with aria-orientation. A label is plain text either way and is read.