Skip to content
Elements / Navigation

tab

inside tabs

One tab inside tabs: its label, and the content shown while it is selected.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
gap
12

Props

"text"textThe tab's label.required
valuestringWhat the tabs' bind= holds while this tab is selected (default: the label).—
gapnumberSpace between children in pixels (default 12).12
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: tabs

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