preact.mdx 880 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. title: Tabler Icons for Preact
  3. ---
  4. ![](https://raw.githubusercontent.com/tabler/tabler-icons/master/.github/packages/og-package-preact.png)
  5. ## Installation
  6. <TabsPackage name="@tabler/icons-preact" />
  7. or just [download from Github](https://github.com/tabler/tabler-icons/releases).
  8. ## How to use
  9. It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
  10. ```js
  11. import { IconArrowDown } from '@tabler/icons-preact';
  12. const App = () => {
  13. return <IconArrowDown />;
  14. };
  15. export default App;
  16. ```
  17. You can pass additional props to adjust the icon.
  18. ```js
  19. <IconArrowDown color="red" size={48} />
  20. ```
  21. ### Props
  22. | name | type | default |
  23. | ------------- | -------- | ------------ |
  24. | `size` | _Number_ | 24 |
  25. | `color` | _String_ | currentColor |
  26. | `stroke` | _Number_ | 2 |