@tabler/icons-solidjs
v3.48.0
Published
A set of free MIT-licensed high-quality SVG icons for you to use in your web projects.
Downloads
13,273
Readme
Tabler Icons for SolidJS
Sponsors
If you want to support our project and help us grow it, you can become a sponsor on GitHub or donate on PayPal.
Installation
npm install @tabler/icons-solidjsyarn add @tabler/icons-solidjspnpm add @tabler/icons-solidjsYou can also download the latest release from GitHub.
Usage
The package is built with ES modules, so unused icons are tree-shaken from your bundle. Each icon is exported as a component.
import { IconArrowRight } from '@tabler/icons-solidjs';
const App = () => {
return <IconArrowRight />;
};
export default App;Pass props to adjust the icon:
<IconArrowRight color="red" size={48} stroke={1.5} />Props
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| size | number | string | 24 | Width and height of the icon |
| color | string | currentColor | Stroke color for outline icons, fill color for filled icons |
| stroke | number | string | 2 | Stroke width, outline icons only. strokeWidth is accepted as an alias |
| title | string | – | Adds a <title> element for accessibility |
| class | string | – | Extra classes added to tabler-icon tabler-icon-{{name}} |
Any other attribute is forwarded to the rendered <svg> element. The package ships with TypeScript declarations.
Contributing
Bug reports and icon requests are welcome in the issue tracker. Caught a mistake in this page? Edit it on GitHub.
License
Tabler Icons is licensed under the MIT License.
