Socket
Socket
Sign inDemoInstall

heroicons-svelte

Package Overview
Dependencies
21
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    heroicons-svelte

The collection of beautiful hand-crafted SVG icons, by the makers of Tailwind CSS, packaged for Svelte apps.


Version published
Weekly downloads
374
increased by172.99%
Maintainers
1
Install size
1.18 MB
Created
Weekly downloads
 

Readme

Source

Heroicons for Svelte

Beautiful hand-crafted SVG icons, by the makers of Tailwind CSS, packaged for Svelte.

Browse at Heroicons.com →

Latest Tag License

Basic Usage

First, install heroicons-svelte from npm:

npm install heroicons-svelte

Now each icon can be imported individually as a Svelte component:

<script>
	import { BeakerIcon } from 'heroicons-svelte/24/solid';
</script>

<BeakerIcon class="h-6 w-6 text-blue-500" />

The 24x24 outline icons can be imported from heroicons-svelte/24/outline, the 24x24 solid icons can be imported from heroicons-svelte/24/solid, and the 20x20 solid icons can be imported from heroicons-svelte/20/solid.

Icons use an upper camel case naming convention and are always suffixed with the word Icon.

Both icon styles are preconfigured to be stylable by setting the color CSS property, either manually or using utility classes like text-gray-500 in a framework like Tailwind CSS.

Browse the full list of icon names on UNPKG →

License

This library is MIT licensed.

Keywords

FAQs

Last updated on 06 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc