- Prop
items- Type
MenuItem[]- Default
- —
- Requirement
- required
- Description
- —
Docs Components Navigation
ContextMenu
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
- parts
- —
- nodes
- —
- size
- —
- part
- —
Installation
API Reference
Import
import { ContextMenu } from "@grassroot/ui-react";
Props
Prop
Type
Default
Requirement
Description
itemsMenuItem[]—
required
—
headerstring | undefined—
optional
Mono uppercase section header atop the menu.
defaultOpenboolean | undefined—
optional
Open at a fixed point for layout/stories (skips the right-click).
defaultPos{ x: number; y: number; } | undefined{x:24,y:24}optional
Anchor point used when `defaultOpen`.
classNamestring | undefined—
optional
—
- Prop
header- Type
string | undefined- Default
- —
- Requirement
- optional
- Description
- Mono uppercase section header atop the menu.
- Prop
defaultOpen- Type
boolean | undefined- Default
- —
- Requirement
- optional
- Description
- Open at a fixed point for layout/stories (skips the right-click).
- Prop
defaultPos- Type
{ x: number; y: number; } | undefined- Default
{x:24,y:24}- Requirement
- optional
- Description
- Anchor point used when `defaultOpen`.
- Prop
className- Type
string | undefined- Default
- —
- Requirement
- optional
- Description
- —
Content regions
children
Import
import { ContextMenu } from "@grassroot/ui-vue";
Props
Prop
Type
Default
Requirement
itemsreadonly ContextMenuItem[]—
required
headerstring | undefinedundefinedoptional
defaultOpenbooleanfalseoptional
defaultPos{ x: number; y: number }() => ({ x: 24, y: 24 })optional
- Prop
items- Type
readonly ContextMenuItem[]- Default
- —
- Requirement
- required
- Prop
header- Type
string | undefined- Default
undefined- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
defaultPos- Type
{ x: number; y: number }- Default
() => ({ x: 24, y: 24 })- Requirement
- optional
Content regions
default
Import
import { Component } from "@angular/core";
import { GrassrootContextMenu } from "@grassroot/ui-angular";
Props
Prop
Type
Default
Requirement
itemsreadonly AngularContextMenuItem[]—
required
headerstring—
optional
defaultOpenbooleanfalseoptional
defaultPos{ x: number; y: number }{ x: 24, y: 24 }optional
- Prop
items- Type
readonly AngularContextMenuItem[]- Default
- —
- Requirement
- required
- Prop
header- Type
string- Default
- —
- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
defaultPos- Type
{ x: number; y: number }- Default
{ x: 24, y: 24 }- Requirement
- optional
Content regions
default
Import
import { ContextMenu } from "@grassroot/ui-svelte";
Props
Prop
Type
Default
Requirement
itemsreadonly ContextMenuItem[]—
required
headerstring—
optional
defaultOpenbooleanfalseoptional
defaultPos{ x: number; y: number }—
optional
classNamestring—
optional
- Prop
items- Type
readonly ContextMenuItem[]- Default
- —
- Requirement
- required
- Prop
header- Type
string- Default
- —
- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
defaultPos- Type
{ x: number; y: number }- Default
- —
- Requirement
- optional
- Prop
className- Type
string- Default
- —
- Requirement
- optional
Content regions
children
Import
import { ContextMenu } from "@grassroot/ui-solid";
Props
Prop
Type
Default
Requirement
itemsContextMenuItem[]—
required
headerstring—
optional
defaultOpenbooleanfalseoptional
defaultPos{ x: number; y: number }—
optional
classNamestring—
optional
- Prop
items- Type
ContextMenuItem[]- Default
- —
- Requirement
- required
- Prop
header- Type
string- Default
- —
- Requirement
- optional
- Prop
defaultOpen- Type
boolean- Default
false- Requirement
- optional
- Prop
defaultPos- Type
{ x: number; y: number }- Default
- —
- Requirement
- optional
- Prop
className- Type
string- Default
- —
- Requirement
- optional
Content regions
children