icon
fun icon(name: String, color: ColorSchema? = null, size: Int? = 24, style: IconSchema.Style = Style.OUTLINED): IconSchema
Builds an IconSchema describing a single Material Symbol, used anywhere a tile takes an icon (buttons, chips, text fields, nav items, etc).
Parameters
name
Material Symbol name looked up on the client (e.g. "settings", "delete").
color
Tint applied to the icon. Defaults to none (inherits the surrounding content color).
size
Size of the icon, in dp. Defaults to 24.
style
Visual style of the glyph — outlinedIcon, roundedIcon or sharpIcon. Defaults to outlined.