UNPKG

onecart-ui

Version:

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

9 lines (8 loc) 848 B
import React from 'react'; export const Create = ({ 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: "M2.000 17.746V21.890H6.144L18.365 9.669L14.221 5.525L2.000 17.746ZM5.227 19.680H4.210V18.663L14.221 8.652L15.238 9.669L5.227 19.680ZM21.569 4.906L18.983 2.320C18.762 2.099 18.486 2.000 18.199 2.000C17.912 2.000 17.635 2.110 17.425 2.320L15.403 4.343L19.547 8.486L21.569 6.464C22.000 6.033 22.000 5.337 21.569 4.906Z", fill: color }))); }; Create.displayName = 'Create';