UNPKG

419 BTypeScriptView Raw
1import * as React from 'react';
2import { IconBaseProps } from './Icon';
3export interface CustomIconOptions {
4 scriptUrl?: string | string[];
5 extraCommonProps?: {
6 [key: string]: any;
7 };
8}
9export interface IconFontProps<T extends string = string> extends IconBaseProps {
10 type: T;
11}
12export default function create<T extends string = string>(options?: CustomIconOptions): React.FC<IconFontProps<T>>;