Parameters
| Parameter | Type | Description |
|---|---|---|
props | Omit<SVGProps<SVGSVGElement>, "viewBox"> | The props for the icon. |
Returns
Element
The copy icon.
function IconCopy(props: Omit<SVGProps<SVGSVGElement>, "viewBox">): Element;
| Parameter | Type | Description |
|---|---|---|
props | Omit<SVGProps<SVGSVGElement>, "viewBox"> | The props for the icon. |
Element
The copy icon.
// Icon is correctly hidden from screen readers
<button type="button" onClick={handleClick}>
<IconCopy />
Copy address
</button>
// Icon with screen-reader accessible label only
<button type="button" onClick={handleClick}>
<IconCopy aria-label="Copy address" />
</button>
Was this page helpful?