UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 639 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const ArrowForward = ({ 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: "M12.000 2.000L10.238 3.762L17.213 10.750H2.000V13.250H17.213L10.238 20.238L12.000 22.000L22.000 12.000L12.000 2.000Z", fill: color }))); }; ArrowForward.displayName = 'ArrowForward';