Back to Tabler Icons

Tabler Icons for React

docs/icons/react.mdx

3.41.1835 B
Original Source

Installation

<TabsPackage name="@tabler/icons-react" />

or just download from Github.

How to use

It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.

js
import { IconArrowLeft } from '@tabler/icons-react';

const App = () => {
  return <IconArrowLeft />;
};

export default App;

You can pass additional props to adjust the icon.

js
<IconArrowLeft color="red" size={48} />

Props

nametypedefault
sizeNumber24
colorStringcurrentColor
strokeNumber2