onecart-ui
Version:
Cross-platform React and React Native component library with white-label support
40 lines • 813 B
TypeScript
import React from 'react';
export interface IconProps {
/**
* Name of the icon to display
*/
name: string;
/**
* Size of the icon in pixels
*/
size?: number;
/**
* Color of the icon
*/
color?: string;
/**
* Optional CSS class name
*/
className?: string;
/**
* Optional style overrides
*/
style?: React.CSSProperties;
/**
* Optional click handler
*/
onClick?: React.MouseEventHandler<SVGSVGElement>;
/**
* Aria label for accessibility
*/
ariaLabel?: string;
}
export interface IconData {
name: string;
path: string;
viewBox: string;
fill?: string;
}
export declare const icons: IconData[];
export declare const Icon: React.FC<IconProps>;
//# sourceMappingURL=Icon.d.ts.map