UNPKG

react-feather

Version:
53 lines (48 loc) 988 B
import React from 'react'; import PropTypes from 'prop-types'; const Sidebar = 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} > <rect x="3" y="3" width="18" height="18" rx="2" ry="2" fill="none" stroke={color} strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" /> <line x1="9" y1="3" x2="9" y2="21" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" /> </svg> ); }; Sidebar.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Sidebar.defaultProps = { color: 'currentColor', size: '24', }; export default Sidebar;