MaterialSymbol

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

Renders one Google Material Symbol glyph as a single-character Text, using the variable font loaded via LocalMaterialSymbolFonts (MaterialSymbolFonts.loadMaterialSymbolFonts must have run and provided that CompositionLocalMosaicApplication/MosaicTheme does this automatically). The bottom-level primitive behind Icon — reach for that instead unless working with an IconSchema-independent icon name directly.

Parameters

iconName

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

modifier

applied to the rendered glyph.

filled

whether to use the filled font variant, vs. the outline weight.

style

which of the 3 font families (outlined/rounded/sharp) to draw from. Outlined when null.

size

glyph size. Falls back to the ambient LocalTextStyle's font size when null.

tint

glyph color. Falls back to LocalContentColor when null.

contentDescription

accessibility description; when non-null, marks this glyph with the Role.Image semantics role.