UNPKG

826 BTypeScriptView Raw
1import { type IconProps } from "./icon";
2interface CreateIconOptions {
3 /**
4 * The icon `svg` viewBox
5 * @default "0 0 24 24"
6 */
7 viewBox?: string;
8 /**
9 * The `svg` path or group element
10 * @type React.ReactElement | React.ReactElement[]
11 */
12 path?: React.ReactElement | React.ReactElement[];
13 /**
14 * If the `svg` has a single path, simply copy the path's `d` attribute
15 */
16 d?: string;
17 /**
18 * The display name useful in the dev tools
19 */
20 displayName?: string;
21 /**
22 * Default props automatically passed to the component; overwritable
23 */
24 defaultProps?: IconProps;
25}
26export declare function createIcon(options: CreateIconOptions): import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
27export {};