Icon
SVG icon component backed by the generated spritesheet.
Icon renders a symbol from the generated Luke UI spritesheet. It needs an
IconSpritesheetProvider ancestor so it can resolve the spritesheet URL.
To find an icon, set its size or colour, or set up the spritesheet, see Iconography.
Create a custom icon
Use createIcon for a one-off icon that is not in the generated spritesheet. It returns a component
with the same sizing and accessibility behaviour as Icon.
Accessibility
Pass title when an icon conveys meaning without adjacent text, such as a standalone status icon.
Icon then exposes it to assistive technology with role="img". When title is omitted, the icon
is decorative.
Read Iconography for decorative and informative examples.
Related components
Use Emoji when the visual content is an emoji that needs an accessible label.
API
IconProps
Prop
Type
CreateIconOptions
Prop
Type
CustomIconProps
Prop
Type
IconSpritesheetProviderProps
Prop
Type