fannypack-v5
Version:
An accessible, composable, and friendly React UI Kit
18 lines (17 loc) • 595 B
TypeScript
import * as React from 'react';
export declare function createComponent<Props>(Component: React.FunctionComponent<Props>, config?: {
attach?: {
displayName?: string;
useProps: (props?: Partial<Props>, config?: {
themeKey?: string;
}) => any;
};
defaultProps?: Partial<Props>;
themeKey?: string;
shouldMemo?: boolean;
}): React.ForwardRefExoticComponent<React.PropsWithoutRef<Props> & React.RefAttributes<unknown>> & {
displayName?: string;
useProps: (props?: Partial<Props>, config?: {
themeKey?: string;
}) => any;
};