solidjs.mdx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. title: SolidJS
  3. description: Tabler Icons library for SolidJS framework.
  4. summary: Tabler Icons for SolidJS is a lightweight library offering a vast selection of high-quality icons. It is designed for seamless integration with SolidJS, enabling developers to build visually appealing interfaces.
  5. ---
  6. ![](/docs/icons/package-solidjs.png)
  7. ## Installation
  8. <TabsPackage name="@tabler/icons-solidjs" />
  9. or just [download from Github](https://github.com/tabler/tabler-icons/releases).
  10. ## How to use
  11. It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
  12. ```js
  13. import { IconArrowRight } from '@tabler/icons-solidjs';
  14. const App = () => {
  15. return <IconArrowRight />;
  16. };
  17. export default App;
  18. ```
  19. You can pass additional props to adjust the icon.
  20. ```js
  21. <IconArrowRight color="red" size={48} />
  22. ```
  23. ### Props
  24. | name | type | default |
  25. | ------------- | -------- | ------------ |
  26. | `size` | _Number_ | 24 |
  27. | `color` | _String_ | currentColor |
  28. | `stroke` | _Number_ | 2 |