UNPKG

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