Skip to content
Open
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
react-feather is a collection of simply beautiful open source icons for React.js. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and readability.

#### Based on Feather Icons ```v4.28.0```
https://feathericons.com/

### Installation
yarn add react-feather
Expand Down
6 changes: 3 additions & 3 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ if (!fs.existsSync(dir)) {
const initialTypeDefinitions = `/// <reference types="react" />
import { FC, SVGAttributes } from 'react';

interface Props extends SVGAttributes<SVGElement> {
export interface IconProps extends SVGAttributes<SVGElement> {
color?: string;
size?: string | number;
}

type Icon = FC<Props>;
export type Icon = FC<IconProps>;
`;

fs.writeFileSync(path.join(rootDir, 'src', 'index.js'), '', 'utf-8');
Expand Down Expand Up @@ -66,7 +66,7 @@ icons.forEach((i) => {
import React, {forwardRef} from 'react';
import PropTypes from 'prop-types';

const ${ComponentName} = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ${ComponentName} = forwardRef(({ color = 'currentColor', size = 1em, ...rest }, ref) => {
return (
<svg ref={ref} ${attrsToString(defaultAttrs)}>
${featherIcons[i]}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-feather",
"version": "2.0.8",
"version": "2.0.9",
"description": "React component for Feather icons",
"main": "build/index.js",
"module": "dist/index.js",
Expand Down Expand Up @@ -56,7 +56,7 @@
"uppercamelcase": "^3.0.0"
},
"peerDependencies": {
"react": "^16.8.6"
"react": "^16.8.6 || ^17"
},
"dependencies": {
"prop-types": "^15.7.2"
Expand Down
2 changes: 1 addition & 1 deletion src/icons/activity.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Activity = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Activity = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/airplay.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Airplay = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Airplay = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/alert-circle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlertCircle = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlertCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/alert-octagon.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlertOctagon = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlertOctagon = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/alert-triangle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlertTriangle = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlertTriangle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/align-center.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlignCenter = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlignCenter = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/align-justify.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlignJustify = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlignJustify = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/align-left.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlignLeft = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlignLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/align-right.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AlignRight = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AlignRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/anchor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Anchor = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Anchor = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/aperture.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Aperture = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Aperture = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/archive.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Archive = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Archive = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-down-circle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowDownCircle = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowDownCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-down-left.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowDownLeft = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowDownLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-down-right.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowDownRight = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowDownRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-down.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowDown = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-left-circle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowLeftCircle = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowLeftCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-left.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowLeft = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-right-circle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowRightCircle = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowRightCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-right.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowRight = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-up-circle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowUpCircle = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowUpCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-up-left.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowUpLeft = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowUpLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-up-right.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowUpRight = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowUpRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/arrow-up.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const ArrowUp = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const ArrowUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/at-sign.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const AtSign = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const AtSign = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/award.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Award = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Award = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bar-chart-2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const BarChart2 = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const BarChart2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bar-chart.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const BarChart = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const BarChart = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/battery-charging.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const BatteryCharging = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const BatteryCharging = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/battery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Battery = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Battery = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bell-off.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const BellOff = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const BellOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bell.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Bell = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Bell = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bluetooth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Bluetooth = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Bluetooth = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bold.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Bold = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Bold = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/book-open.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const BookOpen = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const BookOpen = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/book.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Book = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Book = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/bookmark.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Bookmark = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Bookmark = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/box.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';

const Box = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
const Box = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
return (
<svg
ref={ref}
Expand Down
Loading