onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
9 lines (8 loc) • 754 B
JavaScript
import React from 'react';
export const WaterfallChart = ({ 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: "M18.667 2.000H22.000V19.778H18.667V2.000ZM2.000 12.000H5.333V19.778H2.000V12.000ZM14.222 2.000H17.556V5.333H14.222V2.000ZM9.778 3.111H13.111V7.556H9.778V3.111ZM6.444 8.667H9.778V13.111H6.444V8.667Z", fill: color })));
};
WaterfallChart.displayName = 'WaterfallChart';