Package-level declarations

Functions

Link copied to clipboard
fun TileSchemaBuilderScope.Button(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = {}, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, text: String, icon: IconSchema? = null, buttonType: ButtonTileSchema.Type = filledButton(), shape: ButtonTileSchema.Shape = roundedButton(), loading: Boolean = false, enabled: Boolean = true, iconPosition: ButtonTileSchema.IconPosition = iconAtStart())

Renders a Material 3 button. The visual variant is picked by buttonType (filled, elevated, filled tonal, outlined or text) and its corner style by shape (square or rounded). Shows text together with an optional icon positioned by iconPosition. When loading is true the button shows a spinner instead of its content, and is disabled for real regardless of enabled so a slow action cannot be submitted twice. Dispatches onClick when tapped while interactive.

Link copied to clipboard

Default (small) FAB size — icon scaled to 24dp.

Link copied to clipboard

Default icon button variant — no background, standard content color.

Link copied to clipboard

Elevated button variant — shadowed surface-colored background, for use on top of other filled surfaces.

Link copied to clipboard

Filled button variant — solid background, highest emphasis.

Link copied to clipboard

Filled icon button variant — solid background, highest emphasis.

Link copied to clipboard

Filled tonal button variant — softer filled background, medium emphasis.

Link copied to clipboard

Filled tonal icon button variant — softer filled background, medium emphasis.

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

Renders a Material 3 floating action button. Its size is picked by size (default/small, medium or large), which also scales icon accordingly (24dp, 28dp or 36dp). Dispatches onClick when tapped.

Link copied to clipboard

Places the icon after the text.

Link copied to clipboard

Places the icon before the text.

Link copied to clipboard
fun TileSchemaBuilderScope.IconButton(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = { size( width = wrapHorizontally(), height = wrapVertically() ) }, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, icon: IconSchema, buttonType: IconButtonTileSchema.Type = defaultIconButton(), loading: Boolean = false, enabled: Boolean = true)

Renders a Material 3 icon button. The visual variant is picked by buttonType (default, filled, filled tonal or outlined). Shows icon with its color, size and style applied. When loading is true the button shows a spinner instead of the icon, and is disabled for real regardless of enabled so a slow action cannot be submitted twice. Dispatches onClick when tapped while interactive.

Link copied to clipboard

Large FAB size — icon scaled to 36dp.

Link copied to clipboard

Medium FAB size — icon scaled to 28dp.

Link copied to clipboard

Outlined button variant — transparent background with an outline border, medium emphasis.

Link copied to clipboard

Outlined icon button variant — transparent background with an outline border.

Link copied to clipboard

Rounded button shape — fully rounded (pill/circle) corners.

Link copied to clipboard

Square button shape — mapped to the theme's medium corner radius.

Link copied to clipboard

Text button variant — no background or border, lowest emphasis.