UNPKG

react-feather

Version:
36 lines (31 loc) 752 B
import React from 'react'; import PropTypes from 'prop-types'; const File = 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} > <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" /> <polyline points="13 2 13 9 20 9" /> </svg> ); }; File.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; File.defaultProps = { color: 'currentColor', size: '24', }; export default File;