UNPKG

react-feather

Version:
36 lines (31 loc) 735 B
import React from 'react'; import PropTypes from 'prop-types'; const Search = 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="10.5" cy="10.5" r="7.5" /> <line x1="21" y1="21" x2="15.8" y2="15.8" /> </svg> ); }; Search.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Search.defaultProps = { color: 'currentColor', size: '24', }; export default Search;