UNPKG

onecart-ui

Version:

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

9 lines (8 loc) 673 B
import React from 'react'; export const Star = ({ size = 'md', color = 'currentColor', className, 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", xmlns: "http://www.w3.org/2000/svg", className: className, style: style }, React.createElement("path", { d: "M12.000 17.270L18.180 21.000L16.540 13.970L22.000 9.240L14.810 8.630L12.000 2.000L9.190 8.630L2.000 9.240L7.460 13.970L5.820 21.000L12.000 17.270Z", fill: color }))); }; Star.displayName = 'Star';