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