ComponentsData display
Icons
MudIcon draws an SVG icon from the bundled Material sets or from your own path data. Use it beside text to aid scanning; an icon that stands alone needs an accessible name.
Five Material styles
Every Material icon ships in Filled, Outlined, Rounded, Sharp and TwoTone. Pick one style for the whole product; mixing them looks accidental.
| Icon ↓ · Style → | Filled | Outlined | Rounded | Sharp | TwoTone |
|---|---|---|---|---|---|
| Bookmark | |||||
| LocalShipping | |||||
| Notifications | |||||
| Settings | |||||
| ShoppingBasket |
Every size and color
Size × Color, rendered from the enums. Disabled drops the Color, so the icon inherits the text color. For any other size, set font-size: the SVG scales with it.
| Size ↓ · Color → | Default | Primary | Secondary | Tertiary | Info | Success | Warning | Error | Dark | Transparent | Inherit | Surface |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Small | ||||||||||||
| Medium | ||||||||||||
| Large |
Decorative and meaningful icons
An icon next to a label is decoration and stays hidden from screen readers. An icon that carries meaning on its own gets a Title, which becomes the SVG's accessible name.
Decorative: the text already says it
Departs 18:42
Platform 4, Central Station
Step-free access
Meaningful: the icon is the only signal
Harbour line
Riverside line
Airport line
Custom SVG icons
Icon accepts SVG markup, so your own glyphs behave like Material ones: they take Color and Size. ViewBox matches the coordinate system you drew in.
Searchable icon picker
The icon constants are found by reflection, filtered as you type and capped at 200 results so the grid stays fast. Searching a style by reflection keeps its whole icon set in the WebAssembly download, so the picker offers Outlined and Filled. Pick an icon to get its constant.
Train
Icons.Material.Outlined.Train Playground
Change any parameter; the markup below updates with only the values that differ from the defaults.
<MudIcon
Icon="@Icons.Material.Outlined.LocalCafe"
Size="Size.Large"
Color="Color.Primary"
Title="Café" />