Icons
<Icon />
A react component for rendering a T2 icon.
Available props
Prop | Type | Description |
---|---|---|
icon | string | The icon key. |
size? | number | [number, number]; | The size of the icon. Passing down a number |
className? | string | Additional class names to be added to the component. |
viewBox? | string | The viewbox of the icon. |
getIcons();
Returns an object containing <Icon />
-components of all the icons available in the window object. The keys of the object properties are icon slugs.
The function arguments let you change the default properties of the svg
-element.
Available arguments
Argument | Type | Description |
---|---|---|
size? | number | [number, number]; | The size of the icon. Passing down a number |
className? | string | Additional class names to be added to the component. |
viewBox? | string | The viewbox of the icon. |
icons
An object containing <Icon />
-components of all the icons available in the window object, with the default values. The keys of the object properties are icon slugs.