Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
30 lines
837 B
Plaintext
30 lines
837 B
Plaintext
import React from 'react';
|
|
import type { PopupProps } from '../Popup/index.js';
|
|
import './index.scss';
|
|
/**
|
|
* @internal
|
|
* @experimental
|
|
*/
|
|
export type ComboboxEntry = {
|
|
Component: React.ReactNode;
|
|
name: string;
|
|
};
|
|
/**
|
|
* @internal
|
|
* @experimental
|
|
*/
|
|
export type ComboboxProps = {
|
|
entries: ComboboxEntry[];
|
|
/** Minimum number of entries required to show search */
|
|
minEntriesForSearch?: number;
|
|
onSelect?: (entry: ComboboxEntry) => void;
|
|
searchPlaceholder?: string;
|
|
} & Omit<PopupProps, 'children' | 'render'>;
|
|
/**
|
|
* A wrapper on top of Popup + PopupList.ButtonGroup that adds search functionality.
|
|
*
|
|
* @internal - this component may be removed or receive breaking changes in minor releases.
|
|
* @experimental
|
|
*/
|
|
export declare const Combobox: React.FC<ComboboxProps>;
|
|
//# sourceMappingURL=index.d.ts.map |