mui-component
Version:
some custom mui components
11 lines (10 loc) • 593 B
TypeScript
import type { FunctionComponent, ReactSVG } from "react";
type IconNode = [elementName: keyof ReactSVG, attrs: Record<string, string>][];
interface IconProps extends Partial<Omit<React.ComponentPropsWithoutRef<"svg">, "stroke">> {
size?: string | number;
stroke?: string | number;
title?: string;
}
type Icon = FunctionComponent<IconProps>;
export declare const createReactComponent: (type: "outline" | "filled", iconName: string, iconNamePascal: string, iconNode: IconNode) => import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<Icon>>;
export {};