Divider
A thin line between items.
import { Divider } from "@dede-style/ui/divider", then <Divider />. It renders an <hr>, so screen readers announce it as a separator.
| Prop | Description | Default | Control |
|---|---|---|---|
| orientation | which way the line runs. Horizontal fills its container's width; vertical fills the height of its rowhorizontalvertical | horizontal | |
| variant | how much it stands out: subtle (default) uses the subtle border colour, strong the strong onesubtlestrong | subtle | |
| inset | how far short of each end the line stops. A number is a --space-component-* step, taken off the top and bottom when vertical, or the start and end when horizontal. text makes a vertical line exactly one line of the surrounding text tall, centred in the row. On a horizontal line, text is the same as nonenonetext1234568 | none |
|
Tokens
What a theme can move, where the props above are what an instance can move.
Divider has none, and that is a decision rather than an omission. Every value it renders already resolves through a foundation token or a role, so a theme moves it by moving those. A component token earns its place only when a theme needs to change one component without changing the role beneath it.
These are public and overridable — there is no private custom property, because anything on :root is reachable by any stylesheet. What replaces privacy is a stability contract: primitives may move, roles are the guarantee, and these are the per-component escape from both.