Socket
Socket
Sign inDemoInstall

heroicons-astro

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroicons-astro

Use heroicons in Astro


Version published
Maintainers
1
Created
Source

Heroicons for Astro

This is a fork of Heroicons adapted for Astro.

Usage

First, in the root of your Astro project, run:

npm i heroicons-astro

Then, in any component you can import the Heroicon.astro like this:

---
import Icon from "heroicons-astro/Heroicon.astro";
---

// PROPS
// iconCode: Use the kebab-case icon code from the official website: https://heroicons.com/
// iconStyle: Accepts either "outline" or "solid" (default is "outline")
// customClasses: Accepts classnames as a string. E.g. "h-6 w-6"

<Icon iconCode="beaker" iconStyle="outline" customClasses="h-6 w-6" />

Keywords

FAQs

Package last updated on 29 Dec 2021

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