BetaPublic beta — Read the release notes
Documentation

Separator

Horizontal or vertical visual divider with semantic markup.

Package
@solidiom/separator
Version
0.0.1-next.0
Status
stable

Preview

Content above the divider.

Content below the divider.

This preview uses documentation-only styling. Ship with one of the included recipe outputs (CSS, Tailwind, or UnoCSS) for production styles.

Separator renders a visual divider between content sections with accessible semantics. It supports horizontal and vertical orientations and can be marked as purely decorative to hide from the accessibility tree.

Usage

Separator has a single Root part. Configure orientation and decorative state through props.

import * as Separator from "@solidiom/separator"

;<Separator.Root />

Installation

Install the package with pnpm add @solidiom/separator. The package requires compatible solid-js and @solidjs/web peer dependencies.

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Orientation of the separator.
decorativebooleanfalseWhen true, the separator is purely decorative and hidden from the accessibility tree.

Styling

Separator carries data-scope="separator", data-part="root", and data-orientation attributes. Style it with appropriate borders, margins, or background colors for your design system. The element renders as a <div>; apply your visual recipe using the data attributes for targeting.

Keyboard & behavior

This primitive has no keyboard interaction. It renders static content that does not receive focus or respond to key events.

SSR and hydration

Separator is a passive display element with no interactive state. It renders as static HTML and requires no client-side hydration.