Skip to content
Elements / Layout

overlap

Puts its later children on top of its first one, at a corner, an edge or the middle: a Sale badge on a picture, a count on an icon, a label over a card. The first child sets the size.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
at
inset
8

Props

attop-left · top · top-right · left · center · right · bottom-left · bottom · bottom-rightWhere the children on top sit: top-left, top, top-right, left, center, right, bottom-left, bottom or bottom-right.top-right
insetnumberHow far in from the edges they sit, in pixels (default 8).8
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