Component catalog
Browse the public controls by interaction purpose. Every result links to generated API facts, accessibility behavior, source, and exhaustive stories.
Browse the public controls by interaction purpose. Every result links to generated API facts, accessibility behavior, source, and exhaustive stories.
Draw a thin rule that separates adjacent content — the boundary between two rows in a settings list, two labelled values, or two sections of a card.
import { Divider } from "@liquidify/react/divider"| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | undefined | — | Optional additional CSS class merged into the glass surface class. The supported per-instance customisation seam: override any `--lq-*` custom property from this class's CSS — the token cascade the engine reads (ADR-0004). No raw inline style is involved, so this stays ADR-0003 clean. |
| orientation | "horizontal" | "vertical" | undefined | horizontal | The rule's axis — the web analogue of SwiftUI inferring orientation from the enclosing stack (`VStack` ⇒ horizontal, `HStack` ⇒ vertical). Drives both the visual geometry and `aria-orientation` in one. |
| ref | Ref<HTMLDivElement> | undefined | — | Forwarded ref to the rendered element — the component's native root (or the merged child element on a component that opts into {@link SlottableProps}). Generic over `E` (charter `docs/api-conventions.md` §4 rule 1, default `HTMLElement`) so a component with a polymorphic root (Link's navigation / action mode union, Text's `as`) can instantiate the concrete element per variant instead of leaving every consumer with a widened `Ref<HTMLElement>`. A component that does not narrow simply inherits the `HTMLElement` default — source-compatible with every pre-existing non-generic `extends ControlProps`. |
Divider preserves the semantics of its content and should be given a clear accessible label when its visible content does not provide one.
| Name | Value |
|---|---|
| --lq-color-separator | rgba(60, 60, 67, 0.14) |
| --lq-color-system-gray-3-default-dark | #48484a |
| --lq-color-system-gray-3-default-light | #c7c7cc |
| --lq-divider-pad | Component-defined value |
| --lq-glass- | 440.71.15var(--lq-segmented-control-indicator-blur)calc(var(--lq-glass-material-blur) * 8)var(--lq-shadow-presentational) |
| --lq-radius-pill | 9999rem |
| --lq-space-1 | 0.0625rem |
| --lq-space-2 | 0.125rem |
| --lq-space-8 | 0.5rem |