Skip to content

Mosaic

Pictures: halves, or one large + two small with +N; press fires select {index}.

Group: Media · Kind: macro

example

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-mosaic on Web
exponential-ui-mosaic on iOS
exponential-ui-mosaic on Android
exponential-ui-mosaic on Desktop
Prop Type Required Bindable Description
pictures [picture] yes – The pictures in order.
label string – – The a11y label.
  • on.select: runs an action

None.

none

No basic catalog component maps here.

Box · Image · Text

Role: group

group labelled label; each tile a button named its picture’s alt; the +N tile reads alt then +N ($string.morePictures).

Keys Action
Tab through the tiles; Enter Space select

Recipe parts: Mosaic/root Mosaic/lead Mosaic/image Mosaic/pair Mosaic/side Mosaic/top Mosaic/bottom Mosaic/more Mosaic/moreLabel

Keyed by: size :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Image · Text · ZoomableImage · Icon · Video · AudioPlayer · Avatar · QrCode