Socket
Socket
Sign inDemoInstall

@codewithshin/svelte-heroicons

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @codewithshin/svelte-heroicons

Svelte + TailwindCSS + HeroIcons components


Version published
Weekly downloads
16
increased by220%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.2.1 (2022-04-26)

Bug Fixes

  • moved class={90360props.class} to the end of <svg> (4156617)

Readme

Source

Svelte-heroicons

Hero Icons for Svelte. You can import outline and solid icons without name conflict.

You can use this icons with Tailwind CSS.

List of icons

Icon names

See all the icons at https://heroicons.com/.

Installation

npm i @codewithshin/svelte-heroicons@latest

Import

Solid icons end with xxxxxSolid and outline icons end with xxxxxOutline.

For example:

<script>
  import { AcademicCapIconSolid, AcademicCapIconOutline } from "@codewithshin/svelte-heroicons";
</script>

Props

NameDefault
size24

You can add class to change colors.

TailwindCSS example

<AcademicCapIconSolid class="text-pink-700 dark:text-blue-300" />

Examples

REPL

<script>
  import { AcademicCapIconSolid, AcademicCapIconOutline } from "@codewithshin/svelte-heroicons";
</script>

<AcademicCapIconSolid />

<AcademicCapIconOutline size="36" class="text-blue-500" />

<AcademicCapIconSolid size="40" class=" text-green-500" />

<AcademicCapIconOutline size="48" class="text-red-900" />

REPL example

Keywords

FAQs

Last updated on 26 Apr 2022

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