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;
}
PropTypeRequirementDescription
openbooleanOptional
defaultOpenbooleanOptional
onOpenChange(open: boolean) => voidOptional
modalbooleanOptional
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.