@cmk/fe_utils
Version:
frontend utility library
21 lines (19 loc) • 608 B
TypeScript
import { MenuItemProps } from '@mui/material';
import { CTextFieldProps } from './TextField';
import { Ref } from 'react';
type SelectOption = {
value: string | number | boolean;
label: string;
icon?: string;
iconRotate?: number;
};
export type CSelect2Props = CTextFieldProps & {
options: SelectOption[];
groupBy?: (item: SelectOption) => string;
slotProps?: CTextFieldProps['slotProps'] & {
menuItem?: MenuItemProps;
};
ref?: Ref<HTMLInputElement>;
};
export declare const CSelect2: (props: CSelect2Props) => import("react/jsx-runtime").JSX.Element;
export {};