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
| Variable | Purpose |
|---|---|
--ore-divider-unit | Thickness of each line |
--ore-divider-dark | Color of the upper line |
--ore-divider-light | Color 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".