Skip to main content

Icon

The Icon component allows an icon on a page or as an adornment on other components.

Properties

NameTypeDefaultDescription
iconnodehelp iconSpecifies the icon image.
customIconLinkstringProvides a link to a custom icon, which will override the default icon.

Style Attributes

NameTypeDefaultDescription
colorinherit
primary
secondary
action
disabled
error
string
inheritDefines the color of the icon.
sizeinherit
small
medium
large
mediumDefines the size of the icon.
viewBox0 0 25 25
Defines the size of the view box that displays the icon.
fillhex #ffffff
rgb 5,5,5
The fill color of the icon.
strokehex #ffffff
rgb 5,5,5
The stroke color of the icon.

For more detail on the Icon component, see the MUI developer docs.