UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 839 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const AddBox = ({ size = 'md', color = 'currentColor', 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", style: style }, React.createElement(Path, { d: "M19.778 2.000H4.222C2.989 2.000 2.000 3.000 2.000 4.222V19.778C2.000 21.000 2.989 22.000 4.222 22.000H19.778C21.000 22.000 22.000 21.000 22.000 19.778V4.222C22.000 3.000 21.000 2.000 19.778 2.000ZM19.778 19.778H4.222V4.222H19.778V19.778ZM10.889 17.556H13.111V13.111H17.556V10.889H13.111V6.444H10.889V10.889H6.444V13.111H10.889V17.556Z", fill: color }))); }; AddBox.displayName = 'AddBox';