Socket
Book a DemoInstallSign in
Socket

@steeze-ui/react-icon

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steeze-ui/react-icon

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

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

READ THIS FIRST

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

Overview

Effortless React Icon Component

  • Made and tested for Vite environments
  • Usable with all official Icon Packs
  • Dynamically change theme on runtime

Installation

npm i -D @steeze-ui/react-icon

Usage

//import icon component
import {Icon} from '@steeze-ui/solid-icon'

//import as many icons from any Icon Pack
import {LightningBolt} from '@steeze-ui/heroicons'

//Use the Icon in your App
const MyApp = () => {
  return <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 render nothing)
size100%Configures width and height
*-Any html attribute that is valid (e.g aria-hidden, class or style)

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

react

FAQs

Package last updated on 08 Aug 2023

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