UNPKG

500 BTypeScriptView Raw
1import * as React from 'react';
2export declare type IconSize = 'sm' | 'md' | 'lg' | 'tool';
3export interface IconProps {
4 name: string;
5 size?: IconSize;
6 style?: React.CSSProperties;
7}
8export declare function Icon({ children, ...props }: React.PropsWithChildren<IconProps>): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null;