@nypl/dgx-svg-icons
Version:
React DGX SVG Icons
42 lines (37 loc) • 1.12 kB
JSX
import React from 'react';
import PropTypes from 'prop-types';
const SearchIcon = ({ viewBox, height, width, title, className, style, fill, ariaHidden, focusable }) => (
<svg
viewBox={viewBox}
width={width}
height={height}
className={`${className} svgIcon`}
fill={fill}
style={style}
aria-hidden={ariaHidden}
focusable={focusable}
>
<title>{title}</title>
<path d="M25.26014,23.627l-3.76-3.75948a8.53632,8.53632,0,1,0-2.07145,1.85393l3.86877,3.86822A1.38781,1.38781,0,0,0,25.26014,23.627ZM9.109,14.52943a5.75012,5.75012,0,1,1,5.75012,5.74948A5.75662,5.75662,0,0,1,9.109,14.52943Z" />
</svg>
);
SearchIcon.propTypes = {
className: PropTypes.string,
title: PropTypes.string,
height: PropTypes.string,
width: PropTypes.string,
viewBox: PropTypes.string,
fill: PropTypes.string,
style: PropTypes.object,
ariaHidden: PropTypes.bool,
focusable: PropTypes.bool,
};
SearchIcon.defaultProps = {
ariaHidden: true,
className: 'searchIcon',
title: 'NYPL Search SVG Icon',
width: '32',
height: '32',
viewBox: '0 0 32 32',
};
export default SearchIcon;