Unreviewed
Renders an <a-icon> web component. Color follows currentColor; size is set via the size prop (defaults to 16).
<a-icon>
currentColor
size
Requires @antadesign/anta/elements to be imported (client-side only) to register the underlying custom element and load the icon stylesheets.
@antadesign/anta/elements
<button> <Icon shape="trash" /> Delete</button> Copy
<button> <Icon shape="trash" /> Delete</button>
<button aria-label="Delete"> <Icon shape="trash" label="Delete" /></button> Copy
<button aria-label="Delete"> <Icon shape="trash" label="Delete" /></button>
Renders an
<a-icon>web component. Color followscurrentColor; size is set via thesizeprop (defaults to 16).Requires
@antadesign/anta/elementsto be imported (client-side only) to register the underlying custom element and load the icon stylesheets.