UNPKG

@project-jade-garden/reka-ui

Version:
29 lines (28 loc) 949 B
import { SVATraits } from 'jade-garden'; /** * **Popover** * @description Displays rich content in a portal, triggered by a button. * @see [source](https://reka-ui.com/docs/components/popover#anatomy) */ export declare const slots: readonly ["root", "trigger", "portal", "content", "arrow", "close", "anchor"]; /** * **Popover** * @description Displays rich content in a portal, triggered by a button. * @see [source](https://reka-ui.com/docs/components/popover#anatomy) */ export type Slots = (typeof slots)[number]; /** * **Popover** * @description Displays rich content in a portal, triggered by a button. * @see [source](https://reka-ui.com/docs/components/popover#api-reference) */ export type Traits = SVATraits<Slots, { trigger: { state: "open" | "closed"; }; content: { state: "open" | "closed"; side: "left" | "right" | "bottom" | "top"; align: "start" | "end" | "center"; }; }>;