Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
ContextMenuItem
Context Menu Item using the host's context actions presentation.
Import
import { ContextMenuItem } from "@dartwic/interface-sdk/ui";Declaration
export const ContextMenuItem: HostComponent<MenuItemProps>;MenuItemProps
Selectable dropdown or context menu action.
export interface MenuItemProps extends HostComponentProps {
disabled?: boolean;
inset?: boolean;
onSelect?: HostEventHandler;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
disabled | boolean | Optional | |
inset | boolean | Optional | |
onSelect | HostEventHandler | 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. |