@greensight/gds
Version:
Greensight Design System
14 lines (13 loc) • 462 B
TypeScript
import { SVGRIcon } from '../../../types/Utils';
import { CSSObject } from '@emotion/react';
export interface IconProps {
/** Icon variable name. */
name: string;
/** Icon component. */
Component: SVGRIcon;
/** Path to icon from icons directory. */
path: string;
/** Icon css */
iconCSS?: CSSObject;
}
export declare const Icon: ({ name, Component, path, iconCSS }: IconProps) => import("@emotion/react/jsx-runtime").JSX.Element;