Icon

fun Icon(name: String, modifier: Modifier = Modifier, filled: Boolean = false, tint: Color? = null, size: Dp? = null, style: MaterialSymbolStyle? = null)

Renders a single Material Symbol by literal name — a thin wrapper over MaterialSymbol. Prefer the IconSchema overload below when rendering directly from a tile's own IconSchema field.

Parameters

name

Material Symbol name (Google's icon font naming, e.g. "settings", "delete").

modifier

applied to the rendered glyph.

filled

whether to use the filled variant of the icon.

tint

icon color. Defaults to the ambient content color when null.

size

icon size. Defaults to the ambient text size when null.

style

outline/rounded/sharp glyph style. Defaults to outlined when null.


fun Icon(schema: IconSchema, filled: Boolean = false, modifier: Modifier = Modifier)

Renders an IconSchema directly — the composable every built-in icon-bearing tile (Icon, Button.icon, AssistChip.leadingIcon, etc.) uses under the hood, and the one a custom TileRenderer should reach for whenever it needs to render an IconSchema field.

Parameters

schema

the icon to render — its own name/color/size/style are all read from here.

filled

whether to use the filled variant of the icon — not part of IconSchema itself, so it's a separate parameter, false by default.

modifier

applied to the rendered glyph.