Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ContextMenu

Root component for a context menu.

Import

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

Declaration

export const ContextMenu: HostComponent<HostComponentProps>;

HostComponentProps

Shared presentation and native pass-through props accepted by host components.

export interface HostComponentProps {
    /** Additional Tailwind or host CSS classes. */
    className?: string;
    /** Child content rendered by the host component. */
    children?: HostNode;
    /** Optional DOM identifier. */
    id?: string;
    /** Inline style values passed to the host component. */
    style?: Record<string, unknown>;
    [name: string]: unknown;
}
PropTypeRequirementDescription
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.
[nameunknownRequired