Icon

fun TileSchemaBuilderScope.Icon(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = { size( width = wrapHorizontally(), height = wrapVertically() ) }, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, icon: IconSchema)

Renders a single Material Symbol described by icon, honouring its name, color, size and style. This is the standalone icon tile — its style is applied to the icon's own layout node. Dispatches no triggers at all — not even onDisplay — and is not clickable, so any events declared on it are never fired. Use IconButton for a tappable icon, or wrap this tile in a clickable container.

Parameters

id

Unique identifier of the tile. Defaults to a random id.

events

Events owned by this tile. Never fired, since the tile dispatches no triggers.

style

Layout/appearance modifiers (size, padding, background, etc). Defaults to wrapping its content.

visibility

Whether the tile is shown, hidden but occupies space, or removed from layout. Defaults to visible.

searchableTerms

Terms used by an ancestor's search/filter to decide whether this tile matches. Defaults to none.

icon

Material Symbol rendered by this tile.