Currently brewing — dede is in beta: a first set of components, with more to come. The API may still change.

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.

WorkAbout

Contact
PropDescriptionDefaultControl
orientationwhich way the line runs. Horizontal fills its container's width; vertical fills the height of its rowhorizontalverticalhorizontal
varianthow much it stands out: subtle (default) uses the subtle border colour, strong the strong onesubtlestrongsubtle
insethow 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 nonenonetext1234568none
  • none
  • text
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 8

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.