import { VNode } from 'lupine.components'; export type DemoControlType = 'text' | 'boolean' | 'select' | 'number' | 'color' | 'file'; export type DemoArgType = { control: DemoControlType; options?: T[]; // For 'select' description?: string; }; export type DemoArgTypes = { [K in keyof TArgs]?: DemoArgType; }; export interface DemoStory { id: string; text: string; args: TArgs; argTypes?: DemoArgTypes; code?: string; render: (args: TArgs) => VNode; }