AssistChip

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

Renders a Material 3 assist chip displaying text as its label, with optional leadingIcon and trailingIcon. variant picks the visual style — default (outlined) or elevated. The chip is stateless (no selected state) and both icons are purely decorative — tapping either fires the same chip-level onClick. 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.

leadingIcon

Optional icon rendered before the text. Defaults to none.

trailingIcon

Optional icon rendered after the text. Defaults to none.

enabled

Whether the chip is interactive. Defaults to true.

variant

Visual style of the chip — defaultAssistChip (outlined) or elevatedAssistChip. Defaults to default.