Browse documentation

Component

Separator

The default divider is decorative. Use decorative={false} for a meaningful section boundary.

Preview

First section

Second section

Installation

Packages are unreleased. Follow the packed artifact setup for package mode, or run the local CLI in copy mode and complete the reported npm, token CSS, and Tailwind setup.

Copy Separator · bash
pnpm exec ui add separator
Full installation guide

Usage

This example uses package mode. In copy mode, import the generated component from your project and complete the manual setup steps in the installation guide.

Separator example · tsx
import { Separator } from '@nimjs/ui';

export function Example() {
  return (
    <Separator decorative={false} />
  );
}

System metadata

API and states

The default divider is decorative. Use decorative={false} for a meaningful section boundary.

Accessibility

Semantic separators expose orientation; decorative separators are removed from the accessibility tree.