Preact
The official Preact package for Tabler Icons. Every icon is a tree-shakable component with size, color and stroke props.
![]()
Installation
npm install @tabler/icons-preactyarn add @tabler/icons-preactpnpm install @tabler/icons-preactbun install @tabler/icons-preactor just download from Github.
How to use
It's built with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
import { IconArrowDown } from '@tabler/icons-preact';
const App = () => {
return <IconArrowDown />;
};
export default App;
You can pass additional props to adjust the icon.
<IconArrowDown color="red" size={48} />
Props
All icon components accept these props to control the size, color, and stroke width of the rendered SVG:
| name | type | default |
|---|---|---|
size |
Number | 24 |
color |
String | currentColor |
stroke |
Number | 2 |
