1.0.15 • Published 1 year ago

react-fi v1.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year 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

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago