UNPKG

@yandex/ui

Version:

Yandex UI components

23 lines (22 loc) 763 B
/// <reference types="react" /> import { ISelectProps } from '../../Select.bundle/desktop'; import './index.css'; export declare type IItem = { id: string; avatar: string; title: string; subtitle: string; disabled?: boolean; }; declare type ISearchTextContextProps = { searchText: string; searchInProgress: boolean; onChangeSearchText: (value: string) => void; }; declare type IComboBoxProps = Omit<ISelectProps, 'value' | 'options' | 'onChange'> & ISearchTextContextProps & { value: IItem; options: IItem[]; onChange: (value?: IItem) => void; }; export declare const ComboBox: ({ searchText, searchInProgress, onChangeSearchText, value, options: items, onChange, ...props }: IComboBoxProps) => JSX.Element; export {};