UNPKG

725 BTypeScriptView Raw
1import * as React from 'react';
2import type { IconDefinition } from '@ant-design/icons-svg/lib/types';
3import type { IconBaseProps } from './Icon';
4import { getTwoToneColor, TwoToneColor, setTwoToneColor } from './twoTonePrimaryColor';
5export interface AntdIconProps extends IconBaseProps {
6 twoToneColor?: TwoToneColor;
7}
8export interface IconComponentProps extends AntdIconProps {
9 icon: IconDefinition;
10}
11interface IconBaseComponent<Props> extends React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>> {
12 getTwoToneColor: typeof getTwoToneColor;
13 setTwoToneColor: typeof setTwoToneColor;
14}
15declare const Icon: IconBaseComponent<IconComponentProps>;
16export default Icon;