UNPKG

@project-jade-garden/reka-ui

Version:
36 lines (35 loc) 1.27 kB
import { SVATraits } from 'jade-garden'; /** * **Select** * @description Displays a list of options for the user to pick from—triggered by a button. * @see [source](https://reka-ui.com/docs/components/select#anatomy) */ export declare const slots: readonly ["root", "trigger", "portal", "content", "arrow", "separator", "itemIndicator", "label", "group", "item", "itemText", "viewport", "scrollUpButton", "scrollDownButton", "value", "icon"]; /** * **Select** * @description Displays a list of options for the user to pick from—triggered by a button. * @see [source](https://reka-ui.com/docs/components/select#anatomy) */ export type Slots = (typeof slots)[number]; /** * **Select** * @description Displays a list of options for the user to pick from—triggered by a button. * @see [source](https://reka-ui.com/docs/components/select#api-reference) */ export type Traits = SVATraits<Slots, { trigger: { state: "open" | "closed"; disabled: ""; placeholder: ""; }; content: { state: "open" | "closed"; side: "left" | "right" | "bottom" | "top"; align: "start" | "end" | "center"; }; item: { state: "checked" | "unchecked"; highlighted: ""; disabled: ""; }; }>;