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

@steeze-ui/svelte-icon

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steeze-ui/svelte-icon

  • 1.0.0-next.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
increased by16.2%
Maintainers
1
Weekly downloads
 
Created
Source

READ THIS FIRST

This project is still in experimental development. Expect bugs and breaking changes!

Overview

Effortless Svelte Icon Component

  • Optimized Icon component for Svelte
  • Usable with all offical Icon Packs
  • Dynamically change theme on runtime

Usage

<script>
  //import icon component
  import {Icon} from '@steeze-ui/svelte-icon'

  //import as many icons from a Icon Pack
  import {LightningBolt} from '@steeze-ui/heroicons'
</script>

<!-- Set Icon Theme via the attribute -->
<Icon src={LightningBolt} theme='solid' class='color-gray-900'>

Documentation

Icon attributes

AttributeDefaultDescription
src-(required) The source of a icon coming from an Icon Pack
themedefaultConfigures to use a Icon Theme if available (otherwise use default)
size100%Configures width and height
class-Configures width and height
*-Any html attribute that is valid (e.g aria-hidden)

Icon Packs

For all available Icon Packs visit steeze-ui/icons

Development

This repo uses pnpm. To build a new version of the package just run:

pnpm install && pnpm package

Keywords

FAQs

Package last updated on 17 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