Skip to content
Elements / Data

detail

inside details

One row of details: a field's name and its value.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
tone

Props

"text"textThe field's name, e.g. "Plan".required
valuestringThe value to show, usually an {expression}, e.g. value={order.total} or value="{money(total)}". Empty shows —.required
tonedefault · muted · accent · good · warn · badShow the value as a colored badge, for a status: good, warn, bad, accent or muted. Leave out for plain text.default
ifconditionShow only when this expression is true, e.g. if=done or if={count>0}. Every element takes it.—
tipstringA short explanation shown on hover, keyboard focus or a tap, e.g. tip="Orders not yet shipped": for a term or a number some people won't know, instead of more words on screen. It makes the element a Tab stop if it isn't one. Every element takes it.—

Only inside: details

SayShape v0.1 is an early prototype under the MIT License. Status · GitHub