Skip to content
Elements / Content

text

A paragraph or heading that wraps to the available width. Use {expressions} to show state.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
style
weight
tone
align
strike
rich

Props

"text"textThe words to show. May include {expressions}.required
styledisplay · title · lead · body · captiondisplay, title, lead, body or caption.body
weightregular · semibold · boldregular, semibold or bold. Titles default to semibold.—
tonedefault · muted · accent · good · warn · badColor role: default, muted, accent, good, warn or bad.default
alignleft · center · rightleft, center or right.left
strikebooleanDraw a line through the text, e.g. for an old price.false
iconstringAn icon before the text, by name from icon's list, e.g. icon=check-circle.—
richbooleantrue reads inline formatting in the words: **bold**, *italic*, `code` and links [words](https://…). A link is pressed by the person and sent to you as emit:link with its address; SayShape never opens it. One paragraph per text line.false
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.—

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