1.0.0 • Published 2 years ago

@steeze-ui/vue-icon v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Overview

Effortless Vue 3 Icon Component

  • Made for Vite environments
  • Usable with all official Icon Packs

Installation

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

Usage

<script setup lang="ts">
  //import icon component
  import {Icon} from "@steeze-ui/vue-icon"

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

<template>
  <!-- Set Icon Theme via the attribute -->
  <Icon :src=Fire theme="solid" size="24px" color="red"></Icon>
</template>

Documentation

Icon attributes

AttributeDefaultDescription
src-(required) The source of a icon coming from an Icon Pack
themedefaultConfigure to use a Icon Theme if available (otherwise render default)
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