1.1.0 • Published 1 year ago

@steeze-ui/solid-icon v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

READ THIS FIRST

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

Overview

Effortless Solid 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/solid-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
1.1.0

1 year ago

1.0.1

1 year ago

1.0.1-next.3

1 year ago

1.0.1-next.2

1 year ago

1.0.1-next.1

1 year ago

1.0.1-next.0

1 year ago

1.0.1-next.7

1 year ago

1.0.1-next.6

1 year ago

1.0.1-next.5

1 year ago

1.0.1-next.4

1 year ago

1.0.0

2 years ago

1.0.0-next.0

2 years ago