SuggestionChip

fun TileSchemaBuilderScope.SuggestionChip(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = { size( width = wrapHorizontally(), height = wrapVertically() ) }, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, text: String, icon: IconSchema? = null, enabled: Boolean = true, variant: SuggestionChipTileSchema.Variant = defaultSuggestionChip())

Renders a Material 3 suggestion chip displaying text as its label, with an optional leading icon. variant picks the visual style — default (outlined) or elevated. The chip is stateless (no selected state) and icon is decorative only. Dispatches onClick when tapped.

Parameters

id

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

events

Events owned by this tile, wired to its triggers (e.g. onClick).

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.

text

Label displayed on the chip.

icon

Optional decorative icon rendered before the text. Defaults to none.

enabled

Whether the chip is interactive. Defaults to true.

variant

Visual style of the chip — defaultSuggestionChip (outlined) or elevatedSuggestionChip. Defaults to default.