API reference
blocks/mosaic
Import
Section titled “Import”import * as api from "@fungi.computer/caps/blocks/mosaic";Exports
Section titled “Exports”| 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”type MosaicItem = object;A caller-resolved visual tile.
Properties
Section titled “Properties”optional alt?: string;height?
Section titled “height?”optional height?: number;id: string;disabled?
Section titled “disabled?”optional disabled?: boolean;state?
Section titled “state?”optional state?: "loading" | "ready" | "error";optional url?: string;width?
Section titled “width?”optional width?: number;MosaicPropstype alias
Section titled “MosaicProps”type MosaicProps = HTMLAttributes<HTMLDivElement> & object;Props accepted by Mosaic.
Type Declaration
Section titled “Type Declaration”| 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”const Mosaic: ForwardRefExoticComponent< HTMLAttributes<HTMLDivElement> & object & RefAttributes<HTMLDivElement>>;Renders supplied tiles only; callers resolve data, policy, and navigation.