UNPKG

@trellixio/roaster-coffee

Version:
15 lines 723 B
import * as React from 'react'; /** This type defines the different background possible for the icon */ export declare type IconColor = 'primary' | 'info' | 'success' | 'danger'; export interface IconProps extends React.ComponentProps<'div'> { /** The content to be displayed within the icon */ children: React.ReactNode; /** The background color of the icon */ color?: IconColor; /** If `true`, the icon will have a smaller size. */ small?: boolean; /** If `true`, the icon will display a tooltip on hoover */ hasTooltip?: boolean; } export declare const Icon: React.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React.RefAttributes<HTMLDivElement>>; //# sourceMappingURL=Icon.d.ts.map