mica
Layout / zstack

zstack

Tier 0

Layering: children share one grid cell. Paint order is DOM order.

centered layer

badge

<m-zstack>
  <img src="cover.jpg" alt="" />
  <p style="place-self: center">Title</p>
</m-zstack>

Notes

Defaults to stretch (fill layers are the web's common case; SwiftUI centers). Per-layer placement is plain place-self on the child — light DOM means the platform is the escape hatch.

← hstackcenter →