Bedform UILayout

Divider

Separate sections of content.

Divider


Usage

import { Divider } from "@bedform/ui/divider";

export function SettingsDivider() {
  return <Divider />;
}

Divider fills the available width. It renders an hr and forwards its ref to it; use className, style or ordinary CSS to control its width and surrounding spacing.

CSS variables

VariablePurpose
--ore-divider-unitThickness of each line
--ore-divider-darkColor of the upper line
--ore-divider-lightColor of the lower line

Accessibility

The native <hr> represents a thematic break and is exposed as a separator by assistive technology. When the line is only used for decoration and does not separate content, pass role="none".

On this page