UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 593 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Check = ({ 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: "M8.356 14.030L3.615 9.288L2.000 10.891L8.356 17.247L22.000 3.603L20.397 2.000L8.356 14.030Z", fill: color }))); }; Check.displayName = 'Check';