UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

9 lines (8 loc) 831 B
import React from 'react'; export const Mail = ({ size = 'md', color = 'currentColor', className, style, }) => { const sizeMap = { xs: 16, sm: 20, md: 24, lg: 32, xl: 40 }; const iconSize = typeof size === 'number' ? size : sizeMap[size]; return (React.createElement("svg", { width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style }, React.createElement("path", { d: "M22.000 6.000C22.000 4.900 21.100 4.000 20.000 4.000H4.000C2.900 4.000 2.000 4.900 2.000 6.000V18.000C2.000 19.100 2.900 20.000 4.000 20.000H20.000C21.100 20.000 22.000 19.100 22.000 18.000V6.000ZM20.000 6.000L12.000 10.990L4.000 6.000H20.000ZM20.000 18.000H4.000V8.000L12.000 13.000L20.000 8.000V18.000Z", fill: color }))); }; Mail.displayName = 'Mail';