@component-book/react
Version:
## Description
37 lines (32 loc) • 842 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
interface Item {
name: string;
component: (props: any) => JSX.Element;
props?: any;
group?: string;
scope?: string;
options?: {
[key: string]: {
types?: {
label: string;
value?: any;
}[];
description?: string;
};
};
}
interface Props$1 {
items: Item[];
defaultTheme?: "light" | "dark";
}
declare const ComponentBook: (props: Props$1) => react_jsx_runtime.JSX.Element;
interface Props {
name: string;
age: number;
male: boolean;
list: string[];
data: any;
func: () => string;
}
declare function ComponentTest({ name, age, male, list, data, func }: Props): react_jsx_runtime.JSX.Element;
export { ComponentBook, ComponentTest, type Item };