@surveycake/rc
Version:
react component of surveycake
29 lines (28 loc) • 785 B
TypeScript
import { ChangeEvent, ReactNode } from 'react';
export interface OptionType {
readonly var: string;
readonly sbj: string;
}
export declare type MenuItemOption = {
value: string | number;
children: string | ReactNode;
emptyLabel?: string | ReactNode;
};
declare type MenuGroups = {
optionType: keyof OptionType;
groupTitle: string;
options: MenuItemOption[];
};
export interface GroupSelectProps {
groups: MenuGroups[];
value: unknown;
onChange: (event: ChangeEvent<{
name?: string;
value: unknown;
}>, child: ReactNode) => void;
onOpen?: (event: object) => void;
onClose?: (event: object) => void;
variant?: 'standard' | 'outlined' | 'filled';
multiple?: boolean;
}
export {};