UNPKG

@surveycake/rc

Version:

react component of surveycake

27 lines (26 loc) 785 B
import { ChangeEvent, ReactNode } from 'react'; declare type MenuItemOption = { value: string | number; children: string | ReactNode; }; export interface SelectProps { options: MenuItemOption[]; 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; height?: string; backgroundColor?: string; selectedItemColor?: string; itemSelectedColor?: string; itemHoverBackgroundColor?: string; itemHoverColor?: string; itemSelectedBackgroundColor?: string; isVarItem?: boolean; } export {};