react-feather
Version:
React component for Feather icons
60 lines (55 loc) • 1.15 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Percent = props => {
const { color, size, ...otherProps } = props;
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
{...otherProps}
>
<line
x1="19"
y1="5"
x2="5"
y2="19"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<circle
cx="6.5"
cy="6.5"
r="2.5"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<circle
cx="17.5"
cy="17.5"
r="2.5"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
Percent.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Percent.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Percent;