Display SVG icons with consistent sizing and color in buttons, navigation, and content.
How to use
Use Icon as a consistent host for icons and their sizes. Prefer SnowUI resource icons. For an action, place the icon in Button and give the action an accessible name; do not present a decorative graphic as an action.
Prefer a resource icon. children renders only when neither src nor the resolved icon matches.
size can inherit parent size context. Use Badge as="badge" for a corner badge. Give the Button that owns an action its accessible name.
Inside Accordion, Icon as="leading" inherits the Accordion icon size when size is omitted: 16/20/24 for sm/md/lg. Other Icons do not use this special inheritance, and an explicit size takes priority.