UNPKG

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