Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heroicons-svelte

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
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

Package last updated on 28 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc