Parameters
| Parameter | Type | Description |
|---|---|---|
props | Omit<SVGProps<SVGSVGElement>, "viewBox"> | The props for the icon. |
Returns
Element
The Exclamation Triangle icon.
function IconExclamationTriangle(props: Omit<SVGProps<SVGSVGElement>, "viewBox">): Element;
| Parameter | Type | Description |
|---|---|---|
props | Omit<SVGProps<SVGSVGElement>, "viewBox"> | The props for the icon. |
Element
The Exclamation Triangle icon.
// Icon is correctly hidden from screen readers
<p>
<IconExclamationTriangle />
Warning!
</p>
// Icon with screen-reader accessible label only
<p>
<IconExclamationTriangle aria-label="Warning" />
</p>
Was this page helpful?