codecalm c5f045423e Release 3.10.0 | 3 months ago | |
---|---|---|
.. | ||
src | 7 months ago | |
.gitignore | 7 months ago | |
README.md | 8 months ago | |
build.mjs | 4 months ago | |
package.json | 3 months ago | |
setupVitest.ts | 8 months ago | |
svelte.config.js | 8 months ago | |
test.spec.js | 7 months ago | |
tsconfig.json | 1 year ago | |
vitest.config.ts | 8 months ago |
Implementation of the Tabler Icons library for Svelte applications.
Browse all icons at tabler-icons.io →
If you want to support my project and help me grow it, you can become a sponsor on GitHub or just donate on PayPal :)
yarn add @tabler/icons-svelte
or
npm install @tabler/icons-svelte
or
pnpm install @tabler/icons-svelte
or just download from Github.
It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
<script lang="ts">
import { IconHeart } from '@tabler/icons-svelte';
</script>
<main>
<IconHeart />
</main>
You can pass additional props to adjust the icon.
<IconHeart size={48} stroke={1} />
name | type | default |
---|---|---|
size |
Number | 24 |
color |
String | currentColor |
stroke |
Number | 2 |
class |
String |
For more info on how to contribute please see the contribution guidelines.
Caught a mistake or want to contribute to the documentation? Edit this page on Github
Tabler Icons is licensed under the MIT License.