SelectionContainer

fun TileSchemaBuilderScope.SelectionContainer(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = {}, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, tiles: TileSchemaBuilderScope.() -> Unit = {})

Wraps tiles in a Compose SelectionContainer, making the text rendered by its descendants selectable and copyable with the platform's selection handles and context menu. Dispatches no triggers at all — not even onDisplay — so any events declared on this tile are never fired; wire events on the children instead. Children are rendered without a scope CompositionLocal (behaves like a Box for layout) — put a Column or Row inside when a specific arrangement is needed.

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).

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.

tiles

Child tiles whose rendered text becomes selectable. Defaults to none.