1.0.15 • Published 7 months ago

react-fi v1.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

React-FI

npm npm bundle size NPM

React library for Feather icons.

Installation

$ npm i react-fi

Usage

import React from "react";
import { FiActivity } from "react-fi";

const App = () => {
  return <FiActivity />;
};

export default App;

Icons can be configured with inline props :

<FiActivity color="red" size={48} strokeWidth={4} />

Each and every SVG attribute is customizable. Here are few examples :

Prop NameDefault Value
fillnone
strokeWidth2
strokeLinecapround
strokeLinejoinround

You can also include the whole icon pack :

import React from "react";
import * as ReactFI from "react-fi";

const App = () => {
  return <ReactFI.FiActivity />;
};

export default App;

Size Presets

If you're using Tailwind CSS, you might feel more at ease with a predefined size (e.g., 'lg', 'xs', '2xl'). You may do the same for the size prop because it will be changed to the appropriate size value.

<FiActivity size="lg" />

// is same as

<FiActivity size={18} />

If you are unfamiliar with Tailwind font size standards, please check out https://tailwindcss.com/docs/font-size.

Issues & Contributions

For a new feature, create an issue here. Open to all contributions :)

License

Apache-2.0. Please see the license file for more information.

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago