UNPKG

react-feather

Version:
39 lines (34 loc) 875 B
import React from 'react'; import PropTypes from 'prop-types'; const Crosshair = 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="22" y1="12" x2="18" y2="12" /> <line x1="6" y1="12" x2="2" y2="12" /> <line x1="12" y1="6" x2="12" y2="2" /> <line x1="12" y1="22" x2="12" y2="18" /> </svg> ); }; Crosshair.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Crosshair.defaultProps = { color: 'currentColor', size: '24', }; export default Crosshair;