@feathericons/react
v0.5.0
Published
React components for [Feather](../..).
Readme
@feathericons/react
React components for Feather.
Install
pnpm add @feathericons/reactThis package is ESM-only.
Usage
import { TrashIcon, TrashFillIcon } from '@feathericons/react'
<TrashIcon />
<TrashFillIcon size={24} color="crimson" />The root is regular weight with medium roundness.
Each import path picks a weight and roundness.
Change the default
export default {
resolve: {
alias: [
{ find: /^@feathericons\/react$/, replacement: '@feathericons/react/weight-bold_roundness-large' },
],
},
}Next and webpack use an exact-match alias (@feathericons/react$) to that same entry, and TypeScript paths map @feathericons/react to it with no /* pattern.
Props
| Prop | Default | Effect |
| ------- | -------------- | --------------------------------- |
| color | currentColor | SVG fill |
| size | icon grid | SVG width and height |
| trimX | false | Trim to the left and right bounds |
| trimY | false | Trim to the top and bottom bounds |
| title | | Accessible name |
