0.2.2 • Published 5 months ago

@withpluto/heroicons-svelte v0.2.2

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Heroicons for Svelte

A port of the Heroicons SVG icon set for Svelte.

Installation

The package is installed via NPM:

npm install --save-dev @withpluto/heroicons-svelte

Usage

Icon names are based on the Heroicon icon name, the theme and the icon size.

For example, the academic-cap icon with the outline theme and the 24px size is named AcademicCapOutline24.

Outline theme icons only have a 24px size, though 20px is available for Solid theme icons.

To use the icons in your project

<script>
  import { AcademicCapOutline24 } from '@withpluto/heroicons-svelte'
</script>

<AcademicCapOutline24 />

Props

By default, the icons will have their default size and will inherit the text colour from their parent element. Both of these properties can be overwritten via props.

PropTypeDefaultDescription
sizenumber24 or 20 depending on icon variantThe size of the icon in pixels.
colorstringcurrentColorThe colour of the icon. This can be any valid CSS colour.

SVGs

If you wish to use the SVGs directly, they are available in the icons directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.

0.2.2

5 months ago

0.2.1

6 months ago

0.1.0

9 months ago

0.0.3

10 months ago

0.2.0

8 months ago

0.0.2

10 months ago

0.0.1

1 year ago