mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 09:24:24 +04:00
1.1 KiB
1.1 KiB
title, description, summary
| title | description | summary |
|---|---|---|
| Preact | Tabler Icons library for Preact framework. | Tabler Icons for Preact provides an optimized collection of icons specifically designed for use with Preact. These lightweight and scalable icons are easy to integrate into Preact-based projects. |
Installation
{% include "docs/tabs-package.html" name="@tabler/icons-preact" %}
or 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
| name | type | default |
|---|---|---|
size |
Number | 24 |
color |
String | currentColor |
stroke |
Number | 2 |