Skip to content
Elements / Layout

scroll

A region that shows its children up to a fixed height and scrolls the rest, for a long list inside a card: messages, activity, results. Everything inside is still read and copied.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
size
gap
8
pad
0

Props

"text"textWhat it holds, for screen readers, e.g. Recent activity. Not drawn.optional
sizesm · md · lgHow tall it gets before it scrolls: sm (about 6 rows of controls), md (about 9) or lg (about 12).md
gapnumberSpace between children in pixels (default 8).8
padnumberInner padding in pixels (default 0).0
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.

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