Icons

link <Icon />

A react component for rendering a T2 icon.

link 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.

link 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.

link 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.

link 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.