1 | import React from "react";
|
2 | import { UI } from "../UI.js";
|
3 | import type { ClassNames, CustomComponents } from "../types/index.js";
|
4 |
|
5 | export type DropdownOption = {
|
6 |
|
7 | value: number;
|
8 |
|
9 | label: string;
|
10 | |
11 |
|
12 |
|
13 |
|
14 | disabled: boolean;
|
15 | };
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare function Dropdown(props: {
|
23 | components: Pick<CustomComponents, "Select" | "Option" | "Chevron">;
|
24 | classNames: Pick<ClassNames, UI.DropdownRoot | UI.Dropdown | UI.CaptionLabel | UI.Chevron>;
|
25 | options?: DropdownOption[] | undefined;
|
26 | } & Omit<JSX.IntrinsicElements["select"], "children">): React.JSX.Element;
|
27 | export type DropdownProps = Parameters<typeof Dropdown>[0];
|