Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Separator

A line that divides content, across or down.

Built on the headless Separator.See its API in Docs

Rendered by React 19.3.1

separator.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/separator.json

It also adds utils. The app needs its setup first: Installation.

Usage

It is horizontal unless orientation="vertical", and it is the headless Separator, so a screen reader hears it as a separator.

import { Separator } from '@/components/ui/separator'

Examples

Default

A horizontal line under a heading and vertical lines between links.

Its preview and code are at the top of the page.

API reference

The styled parts pass every prop to the headless part they wrap and add classes. The props, data attributes and keyboard are on Separator's API reference.