react-feather
Version:
React component for Feather icons
45 lines (40 loc) • 918 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const PieChart = 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}
>
<path
d="M21.21 15.89A10 10 0 1 1 8 2.83"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<path
d="M22 12A10 10 0 0 0 12 2v10z"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
PieChart.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
PieChart.defaultProps = {
color: 'currentColor',
size: '24',
};
export default PieChart;