Use createIcon for a one-off icon that is not in the set, such as a brand mark. It returns an SVG
component with the same sizing and accessibility behaviour as Icon, including the size a control
or --luke-icon-size sets.
To size an <svg> you render yourself, such as one from another icon library, pass iconRecipe()
as its className. Then hide it with aria-hidden or name it with role="img" and aria-label
yourself.
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.
Sets the icon size. Without it, the icon takes the size its container sets through
--luke-icon-size, such as xsmall inside a Button, or medium elsewhere.
title
string
Accessible label. When set, the icon is announced as an image.
Sets the icon size. Without it, the icon takes the size its container sets through
--luke-icon-size, such as xsmall inside a Button, or medium elsewhere.
title
string
Accessible label. When set, the icon is announced as an image.