codecalm 99114f09e0 Release 3.0.0-alpha.0 5 months ago
..
src 6d818d9f28 add icons aliases 6 months ago
.gitignore 49c1224849 fix: fix icons svelte package 6 months ago
README.md 03c14d137e Corrected example for additional props and added missing prop (#491) 1 year ago
build.mjs b4cc0d8dff react components 6 months ago
package.json 99114f09e0 Release 3.0.0-alpha.0 5 months ago
setupVitest.ts fc3c0900ec add unit tests 6 months ago
svelte.config.js 49c1224849 fix: fix icons svelte package 6 months ago
test.spec.js 6a9f04c0b1 build fixes 6 months ago
tsconfig.json 8b5735f21b Version 2.0! (#439) 1 year ago
vitest.config.ts fc3c0900ec add unit tests 6 months ago

README.md

Tabler Icons for Svelte

Tabler Icons

Implementation of the Tabler Icons library for Svelte applications.

Browse all icons at tabler-icons.io →

Latest Release License

Sponsors

If you want to support my project and help me grow it, you can become a sponsor on GitHub or just donate on PayPal :)

Installation

yarn add @tabler/icons-svelte

or

npm install @tabler/icons-svelte

or

pnpm install @tabler/icons-svelte

or just download from Github.

How to use

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} />

Props

name type default
size Number 24
color String currentColor
stroke Number 2
class String

Contributing

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

License

Tabler Icons is licensed under the MIT License.

Sponsor Tabler

Sponsor Tabler