UNPKG

@artifak/component-generator

Version:

Component generator utility for Artifak

6 lines (5 loc) 892 B
import { AllHTMLAttributes } from 'react'; import { Settings, BaseConfig, ComponentsRecord } from './typings'; export declare function createComponents<Config = any, ThemeType = any, Props = Record<string, unknown>, Element = HTMLDivElement>(base: BaseConfig<Props, AllHTMLAttributes<Element>, ThemeType> | React.FC<Props>, settings: Settings<Element>): ComponentsRecord<Config, Props, ThemeType>; export declare function createBaseComponent<Config = any, ThemeType = any, Props = Record<string, unknown>, Element = HTMLDivElement>(base: BaseConfig<Props, AllHTMLAttributes<Element>, ThemeType> | React.FC<Props>): ComponentsRecord<Config, Props, ThemeType>; export declare function generateComponent<ThemeType = any, Props = Record<string, unknown>, Element = HTMLDivElement>(base: BaseConfig<Props, AllHTMLAttributes<Element>, ThemeType>, setting: Settings<Element>): React.FC<Props>;