@lessondesk/material-icons
Version:
Material Icon SVGs as React Components
28 lines (23 loc) • 582 B
JavaScript
import React from 'react'
import styled from 'styled-components'
import { space, color } from 'styled-system'
const Svg = styled('svg')({ flex: 'none' }, space, color)
const EmailIcon = ({
size,
...props
}) => (
<Svg
{...props}
viewBox='0 0 24 24'
width={size}
height={size}
fill='currentcolor'
>
<path d='M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V6C22,4.89 21.1,4 20,4Z' />
</Svg>
)
EmailIcon.displayName = 'EmailIcon'
EmailIcon.defaultProps = {
size: 24
}
export default EmailIcon