Merge pull request #15 from ianmiller347/development

add fill support
This commit is contained in:
Ian J. Miller 2020-01-14 19:07:03 -05:00 committed by GitHub
commit c1075deb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,14 +4,14 @@ import IconInner from './IconInner';
class FeatherIcon extends Component {
render() {
const { icon, size, className, ...otherProps } = this.props;
const { icon, size, className, fill, ...otherProps } = this.props;
return (
<svg
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
fill={fill || 'none'}
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
@ -28,7 +28,8 @@ class FeatherIcon extends Component {
FeatherIcon.propTypes = {
icon: PropTypes.string.isRequired,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
className: PropTypes.string
className: PropTypes.string,
fill: PropTypes.string
};
FeatherIcon.defaultProps = {