@gechiui/icons
Version:
GeChiUI Icons package, based on dashicon.
17 lines • 648 B
TypeScript
export default Icon;
export type IconProps = {
icon: JSX.Element;
size?: number;
} & import('@gechiui/primitives').SVGProps;
/** @typedef {{icon: JSX.Element, size?: number} & import('@gechiui/primitives').SVGProps} IconProps */
/**
* Return an SVG icon.
*
* @param {IconProps} props icon is the SVG component to render
* size is a number specifiying the icon size in pixels
* Other props will be passed to wrapped SVG component
*
* @return {JSX.Element} Icon component
*/
declare function Icon({ icon, size, ...props }: IconProps): JSX.Element;
//# sourceMappingURL=index.d.ts.map