Meta
An inline row of facts, separated by a gap instead of a glyph.
import { Meta } from "@arcadia/ui"TSX
A row of facts that belong together (how long something took and when, a model's window and effort, a machine's platform). The space between them is --meta-gap. There is no dot, bar or bullet.
Examples
rootStyle takes layout and this knob: the gap, as a spacing token.
| Knob | Takes | Default | Sets |
|---|---|---|---|
Ref<Space> | var(--space-2) | Space between items. Default 8px (--space-2). |
Each fact is its own element. A comma between them is clipped to a pixel, so the eye sees only the gap while a screen reader, and a copy of the line, still gets the list: "Took 6s, 2h ago".
Do not put a separator character in the facts themselves. A title, a tooltip or a notification that cannot be a row should be a sentence or a comma list instead.
Meta
items- readonly ReactNode[]
- The facts, in order. Each one is rendered as its own span. Pass elements when a fact needs its own structure (an icon, a tooltip). Omit to pass them as children instead.
rootStyle- RootStyle<MetaKnobs>
- Typed StyleX override: layout and the
--meta-*knobs. children- ReactNode
- The facts, when
itemsis omitted.
Rest props go to <span> props.