1.10.0 • Published 1 year ago

tabler-icons-svelte v1.10.0

Weekly downloads
103
License
MIT
Repository
github
Last release
1 year ago

tabler-icons-svelte

This package is no longer supported

Use @tabler/icons-svelte instead.

npm version npm downloads MIT License

A library of Svelte components for Tabler Icons.

A set of over 1250 free MIT-licensed high-quality SVG icons for you to use in your web projects. Each icon is designed on a 24x24 grid and a 2px stroke.

Installation

# yarn
yarn add tabler-icons-svelte --dev

# npm
npm install tabler-icons-svelte  --save-dev

tabler-icons-svelte needs to be added as a dev dependency as Svelte requires original component source

Usage

Import components inside of the <script> and use like any other Svelte component.

Find icons:

Import Components From Package

The easiest way to use the icon components is by importing them from the package.

<script>
    import { CurrencyBitcoin, BrandGithub, CircleX } from "tabler-icons-svelte";
</script>

<CurrencyBitcoin />
<BrandGithub />
<CircleX />

Import Components From File

If your build times are high, import the components from their svelte files.

<script>
    import Volume2 from "tabler-icons-svelte/icons/Volume2.svelte";
    import CurrencyBitcoin from "tabler-icons-svelte/icons/CurrencyBitcoin.svelte";
</script>

<Volume2 />
<CurrencyBitcoin size="2rem" />

Props

The components each accept 4 optional props:

PropDefaultDescription
size24The size of the Icon. Measured in pixels if no other unit is passed.
colorcurrentColorAny valid CSS \<color>.
strokeWidth2The SVG's stroke width. Measured in pixels if no other unit is passed.
classundefinedClasses that are passed down to the SVG.

Development Workflow

See CONTRIBUTING.md

License

MIT

1.10.0

1 year ago

1.9.1

1 year ago

1.9.0

1 year ago

1.8.0

2 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago