UNPKG

@project-jade-garden/reka-ui

Version:
30 lines (29 loc) 1.09 kB
import { SVATraits } from 'jade-garden'; /** * **Dialog** * @description A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. * @see [source](https://reka-ui.com/docs/components/dialog#anatomy) */ export declare const slots: readonly ["root", "trigger", "portal", "content", "overlay", "close", "title", "description"]; /** * **Dialog** * @description A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. * @see [source](https://reka-ui.com/docs/components/dialog#anatomy) */ export type Slots = (typeof slots)[number]; /** * **Dialog** * @description A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. * @see [source](https://reka-ui.com/docs/components/dialog#api-reference) */ export type Traits = SVATraits<Slots, { trigger: { state: "open" | "closed"; }; content: { state: "open" | "closed"; }; overlay: { state: "open" | "closed"; }; }>;