react-feather
Version:
React component for Feather icons
36 lines (31 loc) • 821 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Inbox = 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}
>
<polyline points="22 13 16 13 14 16 10 16 8 13 2 13" />
<path d="M5.47 5.19L2 13v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5l-3.47-7.81A2 2 0 0 0 16.7 4H7.3a2 2 0 0 0-1.83 1.19z" />
</svg>
);
};
Inbox.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Inbox.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Inbox;