Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

Separator

Separate account-setting groups without extra content.

Preview

Live preview

Changes apply to this preview only.

Account settings

Sections divided by separators.

Profile

Name, photo, email

Security

Password, two-factor

Notifications

Email and push

Toolbar

Vertical separators between inline actions.

ProfileSettingsLogout

Order summary

The total is separated from the lines.

Subtotal€148
Shipping€9
Total€157

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

Orientation

Horizontal fills its container; vertical stretches to the height of a flex or grid row.

Open preview

Appearances

solid, dashed and dotted line styles.

Open preview

Thickness

Relative to the preset control border width.

Open preview

Usage

Use a separator for meaningful grouping; use layout gap for ordinary spacing.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluSeparatorProps

Type source
PimoluSeparatorProps public API
NameTypeDefaultDescription
orientation"horizontal" | "vertical" | undefined"horizontal"Direction of the separator.
appearance"solid" | "dashed" | "dotted" | undefined"solid"Visual line style.
thickness"medium" | "thin" | "thick" | undefined"thin"Line thickness.
variant"primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | undefined"neutral"Semantic color variant.
decorativeboolean | undefinedtrueHide the separator from assistive technology.
onChangeChangeEventHandler<HTMLDivElement, Element> | undefined—Standard React/HTML attribute.
defaultValuestring | number | readonly string[] | undefined—Standard React/HTML attribute.
classNamestring | undefined—Standard React/HTML attribute.
styleCSSProperties | undefined—Standard React/HTML attribute.
aria-labelstring | undefined—Defines a string value that labels the current element.
onClickMouseEventHandler<HTMLDivElement> | undefined—Standard React/HTML attribute.
orientation

"horizontal" | "vertical" | undefined

Default: "horizontal"

Direction of the separator.

appearance

"solid" | "dashed" | "dotted" | undefined

Default: "solid"

Visual line style.

thickness

"medium" | "thin" | "thick" | undefined

Default: "thin"

Line thickness.

variant

"primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | undefined

Default: "neutral"

Semantic color variant.

decorative

boolean | undefined

Default: true

Hide the separator from assistive technology.

onChange

ChangeEventHandler<HTMLDivElement, Element> | undefined

No default extracted.

Standard React/HTML attribute.

defaultValue

string | number | readonly string[] | undefined

No default extracted.

Standard React/HTML attribute.

className

string | undefined

No default extracted.

Standard React/HTML attribute.

style

CSSProperties | undefined

No default extracted.

Standard React/HTML attribute.

aria-label

string | undefined

No default extracted.

Defines a string value that labels the current element.

onClick

MouseEventHandler<HTMLDivElement> | undefined

No default extracted.

Standard React/HTML attribute.

Accessibility

  • Keep decorative separators out of the reading order and label structural regions when needed.
Read the accessibility guide →