UNPKG

react-feather

Version:
37 lines (32 loc) 773 B
import React from 'react'; import PropTypes from 'prop-types'; const XCircle = props => { const { color, size, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...otherProps} > <circle cx="12" cy="12" r="10" /> <line x1="15" y1="9" x2="9" y2="15" /> <line x1="9" y1="9" x2="15" y2="15" /> </svg> ); }; XCircle.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; XCircle.defaultProps = { color: 'currentColor', size: '24', }; export default XCircle;