Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
Popover
Popover using the host's anchored content presentation.
Import
import { Popover } from "@dartwic/interface-sdk/ui";Declaration
export const Popover: HostComponent<PopoverProps>;PopoverProps
Open state for an anchored host popover.
export interface PopoverProps extends HostComponentProps {
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
modal?: boolean;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
open | boolean | Optional | |
defaultOpen | boolean | Optional | |
onOpenChange | (open: boolean) => void | Optional | |
modal | boolean | Optional | |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |