UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 768 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Laptop = ({ 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: "M17.000 17.000C17.917 17.000 18.667 16.250 18.667 15.333V5.333C20.333 4.417 19.583 3.667 18.667 3.667H5.333C2.750 5.333 2.000 6.083 2.000 7.000V13.667C3.667 14.583 4.417 15.333 5.333 15.333H2.000V17.000H22.000V15.333H18.667ZM3.667 7.000H17.000V15.333H3.667V7.000Z", fill: color }))); }; Laptop.displayName = 'Laptop';