Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

Dialog

Dialog using the host's modal workflows presentation.

Import

import { Dialog } from "@dartwic/interface-sdk/ui";

Declaration

export const Dialog: HostComponent<DialogProps>;

DialogProps

Open state for a host dialog.

export interface DialogProps 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.