UNPKG

react-feather

Version:
36 lines (31 loc) 769 B
import React from 'react'; import PropTypes from 'prop-types'; const Mail = 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="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" /> <polyline points="22,6 12,13 2,6" /> </svg> ); }; Mail.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Mail.defaultProps = { color: 'currentColor', size: '24', }; export default Mail;