@project-jade-garden/reka-ui
Version:
Reka UI anatomy slots for headless design
35 lines (34 loc) • 1.21 kB
TypeScript
import { SVATraits } from 'jade-garden';
/**
* **Combobox**
* @description Choose from a list of suggested values with full keyboard support.
* @see [source](https://reka-ui.com/docs/components/combobox#anatomy)
*/
export declare const slots: readonly ["root", "input", "anchor", "empty", "trigger", "cancel", "group", "label", "content", "viewport", "virtualizer", "item", "itemIndicator", "separator", "arrow", "portal"];
/**
* **Combobox**
* @description Choose from a list of suggested values with full keyboard support.
* @see [source](https://reka-ui.com/docs/components/combobox#anatomy)
*/
export type Slots = (typeof slots)[number];
/**
* **Combobox**
* @description Choose from a list of suggested values with full keyboard support.
* @see [source](https://reka-ui.com/docs/components/combobox#api-reference)
*/
export type Traits = SVATraits<Slots, {
trigger: {
state: "open" | "closed";
disabled: "";
};
content: {
state: "open" | "closed";
side: "left" | "right" | "bottom" | "top";
align: "start" | "end" | "center";
};
item: {
state: "checked" | "unchecked";
highlighted: "";
disabled: "";
};
}>;