@swert/feather-icons
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Swert Feather Icons

NPM version NPM downloads

Install

$ npm install @swert/feather-icons
$ pnpm install @swert/feather-icons
$ yarn add @swert/feather-icons

Usage

<script setup>
// Only import what you need!
import { FeatherIcon, CoffeeIcon, ... } from '@swert/feather-icons'
</script>

<template>
    <FeatherIcon size="1.5x" class="custom-class" />
</template>

See all icons and usage here: https://feathericons.com

Sizing

By default, icons will be sized based on the font size of the parent element.

You can set a custom size using the size attribute. For multiple based sizing, pass the desired multiple followed by an x.

<FeatherIcon size="1.5x" class="custom-class" />

You can also set a px size directly by just passing an integer

<FeatherIcon size="25" class="custom-class" />

Tree shaking

By using ES imports like import { FeatherIcon } from '@swert/feather-icons' with webpack + minifier or Rollup, unused exports in this module will be automatically eliminated.

Readme

Keywords

Package Sidebar

Install

npm i @swert/feather-icons

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

613 kB

Total Files

6

Last publish

Collaborators

  • rezvitsky