Icon
The Icon component allows an icon on a page or as an adornment on other components.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| icon | node | help icon | Specifies the icon image. |
| customIconLink | string | Provides a link to a custom icon, which will override the default icon. |
Style Attributes
| Name | Type | Default | Description |
|---|---|---|---|
| color | inherit primary secondary action disabled error string | inherit | Defines the color of the icon. |
| size | inherit small medium large | medium | Defines the size of the icon. |
| viewBox | 0 0 25 25 | Defines the size of the view box that displays the icon. | |
| fill | hex #ffffff rgb 5,5,5 | The fill color of the icon. | |
| stroke | hex #ffffff rgb 5,5,5 | The stroke color of the icon. |
For more detail on the Icon component, see the MUI developer docs.