UNPKG

765 BTypeScriptView Raw
1import React from 'react';
2import { Theme, TypeOptions } from '../types';
3/**
4 * Used when providing custom icon
5 */
6export interface IconProps {
7 theme: Theme;
8 type: TypeOptions;
9}
10export declare type BuiltInIconProps = React.SVGProps<SVGSVGElement> & IconProps;
11declare function Warning(props: BuiltInIconProps): JSX.Element;
12declare function Info(props: BuiltInIconProps): JSX.Element;
13declare function Success(props: BuiltInIconProps): JSX.Element;
14declare function Error(props: BuiltInIconProps): JSX.Element;
15declare function Spinner(): JSX.Element;
16export declare const Icons: {
17 info: typeof Info;
18 warning: typeof Warning;
19 success: typeof Success;
20 error: typeof Error;
21 spinner: typeof Spinner;
22};
23export {};