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

1.0.7 • Public • Published

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

Prop Type Default
size string or integer base predefined size or pixel value
strokeWidth integer 2
fill string none

Predefined sizes

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

sizes

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i @jollie/feather-icons

    Weekly Downloads

    0

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    433 kB

    Total Files

    583

    Last publish

    Collaborators

    • thejellyfish