@project-jade-garden/reka-ui
Version:
Reka UI anatomy slots for headless design
30 lines (29 loc) • 1.05 kB
TypeScript
import { SVATraits } from 'jade-garden';
/**
* **Alert Dialog**
* @description A modal dialog that interrupts the user with important content and expects a response.
* @see [source](https://reka-ui.com/docs/components/alert-dialog#anatomy)
*/
export declare const slots: readonly ["root", "trigger", "portal", "content", "overlay", "cancel", "title", "description", "action"];
/**
* **Alert Dialog**
* @description A modal dialog that interrupts the user with important content and expects a response.
* @see [source](https://reka-ui.com/docs/components/alert-dialog#anatomy)
*/
export type Slots = (typeof slots)[number];
/**
* **Alert Dialog**
* @description A modal dialog that interrupts the user with important content and expects a response.
* @see [source](https://reka-ui.com/docs/components/alert-dialog#api-reference)
*/
export type Traits = SVATraits<Slots, {
trigger: {
state: "open" | "closed";
};
content: {
state: "open" | "closed";
};
overlay: {
state: "open" | "closed";
};
}>;