Skip to content
API reference

blocks/mosaic

Import
import * as api from "@fungi.computer/caps/blocks/mosaic";
Kind Export Description
type alias MosaicItem A caller-resolved visual tile.
type alias MosaicProps Props accepted by Mosaic.
constant Mosaic Renders supplied tiles only; callers resolve data, policy, and navigation.

MosaicItemtype alias

Section titled “MosaicItem”
Signature
type MosaicItem = object;

A caller-resolved visual tile.

Signature
optional alt?: string;
Signature
optional height?: number;
Signature
id: string;
Signature
optional disabled?: boolean;
Signature
optional state?: "loading" | "ready" | "error";
Signature
optional url?: string;
Signature
optional width?: number;

MosaicPropstype alias

Section titled “MosaicProps”
Signature
type MosaicProps = HTMLAttributes<HTMLDivElement> & object;

Props accepted by Mosaic.

Name Type Description
empty? ReactNode -
items readonly MosaicItem[] -
label? ReactNode Caller-owned accessible copy for the list.
onOpen()? (item) => void When absent, tiles are deliberately non-interactive.

Mosaicconstant

Section titled “Mosaic”
Signature
const Mosaic: ForwardRefExoticComponent<
HTMLAttributes<HTMLDivElement> & object & RefAttributes<HTMLDivElement>
>;

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