@project-jade-garden/reka-ui
Version:
Reka UI anatomy slots for headless design
35 lines (34 loc) • 1.36 kB
text/typescript
import { SVATraits } from 'jade-garden';
/**
* **Menubar**
* @description A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
* @see [source](https://reka-ui.com/docs/components/menubar#anatomy)
*/
export declare const slots: readonly ["root", "trigger", "portal", "content", "arrow", "item", "group", "separator", "checkboxItem", "itemIndicator", "label", "radioGroup", "radioItem", "sub", "subContent", "subTrigger", "menu"];
/**
* **Menubar**
* @description A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
* @see [source](https://reka-ui.com/docs/components/menubar#anatomy)
*/
export type Slots = (typeof slots)[number];
/**
* **Menubar**
* @description A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
* @see [source](https://reka-ui.com/docs/components/menubar#api-reference)
*/
export type Traits = SVATraits<Slots, {
trigger: {
state: "open" | "closed";
highlighted: "";
disabled: "";
};
content: {
state: "open" | "closed";
side: "left" | "right" | "bottom" | "top";
align: "start" | "end" | "center";
};
item: {
highlighted: "";
disabled: "";
};
}>;