UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 619 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Menu = ({ 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: "M2.000 18.667H22.000V16.444H2.000V18.667ZM2.000 13.111H22.000V10.889H2.000V13.111ZM2.000 5.333V7.556H22.000V5.333H2.000Z", fill: color }))); }; Menu.displayName = 'Menu';