| title | ContextMenu |
|---|
import { DocExample } from "@site/src/components/DocExample";
Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
onOpenChange |
((open: boolean) => void) |
- | - | |
dir |
enum |
- | - | |
modal |
boolean |
- | - |
import { ContextMenu } from '@databricks/appkit-ui';
<ContextMenu /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
onSelect |
((event: Event) => void) |
- | - | |
asChild |
boolean |
- | - | |
disabled |
boolean |
- | - | |
checked |
CheckedState |
- | - | |
onCheckedChange |
((checked: boolean) => void) |
- | - | |
textValue |
string |
- | - |
import { ContextMenuCheckboxItem } from '@databricks/appkit-ui';
<ContextMenuCheckboxItem /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - | |
forceMount |
true |
- | Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. | |
onEscapeKeyDown |
((event: KeyboardEvent) => void) |
- | - | |
onPointerDownOutside |
((event: PointerDownOutsideEvent) => void) |
- | - | |
onFocusOutside |
((event: FocusOutsideEvent) => void) |
- | - | |
onInteractOutside |
((event: FocusOutsideEvent | PointerDownOutsideEvent) => void) |
- | - | |
onCloseAutoFocus |
((event: Event) => void) |
- | Event handler called when auto-focusing on close. Can be prevented. | |
loop |
boolean |
- | Whether keyboard navigation should loop around @defaultValue false | |
alignOffset |
number |
- | - | |
arrowPadding |
number |
- | - | |
avoidCollisions |
boolean |
- | - | |
collisionBoundary |
Boundary | Boundary[] |
- | - | |
collisionPadding |
number | Partial<Record<"left" | "right" | "top" | "bottom", number>> |
- | - | |
sticky |
enum |
- | - | |
hideWhenDetached |
boolean |
- | - | |
updatePositionStrategy |
enum |
- | - |
import { ContextMenuContent } from '@databricks/appkit-ui';
<ContextMenuContent /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - |
import { ContextMenuGroup } from '@databricks/appkit-ui';
<ContextMenuGroup /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
onSelect |
((event: Event) => void) |
- | - | |
asChild |
boolean |
- | - | |
disabled |
boolean |
- | - | |
textValue |
string |
- | - | |
inset |
boolean |
- | - | |
variant |
enum |
default |
- |
import { ContextMenuItem } from '@databricks/appkit-ui';
<ContextMenuItem /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - | |
inset |
boolean |
- | - |
import { ContextMenuLabel } from '@databricks/appkit-ui';
<ContextMenuLabel /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
container |
Element | DocumentFragment | null |
- | Specify a container element to portal the content into. | |
forceMount |
true |
- | Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. |
import { ContextMenuPortal } from '@databricks/appkit-ui';
<ContextMenuPortal /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - | |
value |
string |
✓ | - | - |
onValueChange |
((value: string) => void) |
- | - |
import { ContextMenuRadioGroup } from '@databricks/appkit-ui';
<ContextMenuRadioGroup /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
onSelect |
((event: Event) => void) |
- | - | |
asChild |
boolean |
- | - | |
disabled |
boolean |
- | - | |
value |
string |
✓ | - | - |
textValue |
string |
- | - |
import { ContextMenuRadioItem } from '@databricks/appkit-ui';
<ContextMenuRadioItem /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - |
import { ContextMenuSeparator } from '@databricks/appkit-ui';
<ContextMenuSeparator /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
This component extends standard HTML element attributes.
import { ContextMenuShortcut } from '@databricks/appkit-ui';
<ContextMenuShortcut /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
open |
boolean |
- | - | |
defaultOpen |
boolean |
- | - | |
onOpenChange |
((open: boolean) => void) |
- | - |
import { ContextMenuSub } from '@databricks/appkit-ui';
<ContextMenuSub /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - | |
forceMount |
true |
- | Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. | |
onEscapeKeyDown |
((event: KeyboardEvent) => void) |
- | - | |
onPointerDownOutside |
((event: PointerDownOutsideEvent) => void) |
- | - | |
onFocusOutside |
((event: FocusOutsideEvent) => void) |
- | - | |
onInteractOutside |
((event: FocusOutsideEvent | PointerDownOutsideEvent) => void) |
- | - | |
loop |
boolean |
- | Whether keyboard navigation should loop around @defaultValue false | |
sideOffset |
number |
- | - | |
alignOffset |
number |
- | - | |
arrowPadding |
number |
- | - | |
avoidCollisions |
boolean |
- | - | |
collisionBoundary |
Boundary | Boundary[] |
- | - | |
collisionPadding |
number | Partial<Record<"left" | "right" | "top" | "bottom", number>> |
- | - | |
sticky |
enum |
- | - | |
hideWhenDetached |
boolean |
- | - | |
updatePositionStrategy |
enum |
- | - |
import { ContextMenuSubContent } from '@databricks/appkit-ui';
<ContextMenuSubContent /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
asChild |
boolean |
- | - | |
disabled |
boolean |
- | - | |
textValue |
string |
- | - | |
inset |
boolean |
- | - |
import { ContextMenuSubTrigger } from '@databricks/appkit-ui';
<ContextMenuSubTrigger /* props */ />Source: packages/appkit-ui/src/react/ui/context-menu.tsx
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
disabled |
boolean |
- | - | |
asChild |
boolean |
- | - |
import { ContextMenuTrigger } from '@databricks/appkit-ui';
<ContextMenuTrigger /* props */ />