Skip to content
Elements / Layout

list-item

inside list

One row of a list: a title, an optional detail line and value on the right, and anything inside it (a badge, a check, a row) under the title. Give it on= to make it pressable.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props

Props

"text"textThe row's title.required
detailstringA second, quieter line under the title.—
trailingstringA short value on the right, like a price or a count.—
iconstringAn icon before the text, by name from icon's list, e.g. icon=check-circle.—
onactionActions to run when the row is pressed, e.g. emit:changed. Separate several with ;—
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.—

Children: any elements.

Only inside: list

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