lune-ui-lib
Version:
Lune UI Components Library
21 lines (20 loc) • 711 B
TypeScript
import type { SxProps } from '@mui/material';
import React from 'react';
export type FilterFunction = (option: {
label: string;
}, key: string) => boolean;
export interface Props<T> {
value: T;
items: T[];
onChange: (value: T) => void;
sx?: SxProps;
disabled?: boolean;
label?: string;
error?: string | boolean;
groupBy?: (option: T) => string;
showGroupName?: boolean;
filter?: FilterFunction;
customOptions?: (option: T) => React.ReactNode;
}
declare const AutocompleteSelect: <T>({ value, items, onChange, sx, disabled, label, error, groupBy, customOptions, filter, showGroupName, ...rest }: Props<T>) => React.ReactElement;
export default AutocompleteSelect;