1.0.7 • Published 3 years ago

@jollie/feather-icons v1.0.7

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

Version Licence Build Coverage Downloads

Feather icons

Feather SVG icons for React.
To search an icon, see https://feathericons.com

Install

yarn add @jollie/feather-icons

or

npm install @jollie/feather-icons

Usage

import React from 'react';
import { IconFeather, IconHeart, IconTrash } from '@jollie/feather-icons';

// Sizing
const FeatherXL = () => <IconFeather size="xl" />;
const Feather256 = () => <IconFeather size={256} />;

// Fill & stroke
const Heart = () => <IconHeart fill="red" />;
const FatIcon = () => <IconFeather strokeWidth={5} />;

// Colors
const DeleteButton = () => <IconTrash style={{ color: 'red' }} />;

// Tailwindcss
const IconTailwindClass = () => <IconTrash className="text-red-700" />;
// Example import all icons
import React from 'react';
import * as Feather from '@jollie/feather-icons';

const DeleteButton = () => <Feather.IconTrash style={{ color: 'red' }} />;
const EditButton = () => <Feather.IconEdit style={{ color: 'red' }} />;

Params

PropTypeDefault
sizestring or integerbase predefined size or pixel value
strokeWidthinteger2
fillstringnone

Predefined sizes

xs sm base lg xl 2xl 3xl 4xl 5xl

sizes

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago