Skip to content

blocks/mosaic

@fungi.computer/caps


@fungi.computer/caps / blocks/mosaic

MosaicItem = object

A caller-resolved visual tile.

optional alt?: string

optional height?: number

id: string

optional disabled?: boolean

optional state?: "loading" | "ready" | "error"

optional url?: string

optional width?: number


MosaicProps = HTMLAttributes<HTMLDivElement> > & object

Props accepted by Mosaic.

optional empty?: ReactNode

items: readonly MosaicItem[]

optional label?: ReactNode

Caller-owned accessible copy for the list.

optional onOpen?: (item) => void

When absent, tiles are deliberately non-interactive.

MosaicItem

void

const Mosaic: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> > & object & RefAttributes<HTMLDivElement>>>>

Renders supplied tiles only; callers resolve data, policy, and navigation.