UNPKG

@cmk/fe_utils

Version:
23 lines (21 loc) 1.06 kB
import { ReactNode } from 'react'; import { SelectProps, FormControlProps, SelectChangeEvent, BoxProps } from '@mui/material'; import { CommonInputFieldProps } from './types'; type SpecificSelectChangeEvent = SelectChangeEvent<(string | number | boolean)[]>; export type MultiSelectProps = CommonInputFieldProps & Omit<SelectProps, 'onChange' | 'defaultValue'> & { disableTopPadding?: boolean; value?: (string | number | boolean)[]; options?: { value: string | number | boolean; label: ReactNode; textLabel?: string; }[]; disableHelperText?: boolean; disableLabel?: boolean; labelSx?: BoxProps['sx']; ContainerProps?: FormControlProps; onChange?: ((newValue: string[], e: SpecificSelectChangeEvent) => void) | ((newValue: number[], e: SpecificSelectChangeEvent) => void) | ((newValue: boolean[], e: SpecificSelectChangeEvent) => void); defaultValue?: (string | number | boolean)[]; }; export declare const MultiSelect: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element; export {};