UNPKG

560 BTypeScriptView Raw
1import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
2import { IconBaseProps } from './Icon';
3export interface CustomIconOptions {
4 scriptUrl?: string | string[];
5 extraCommonProps?: {
6 [key: string]: any;
7 };
8}
9export interface IconFontProps extends IconBaseProps {
10 type: string;
11}
12export interface IIconFont extends ForwardRefExoticComponent<PropsWithoutRef<IconFontProps> & RefAttributes<HTMLSpanElement>> {
13 __C7N_ICON?: boolean;
14}
15export default function create(options?: CustomIconOptions): IIconFont;