BridgeBeta
  • Brand
  • Digital Assets
    Foundations
    Icons
    Components
    Templates
  • Resources
    Design Tokens
    How-tos
    Best Practices
    Libraries
    Accessibility
    Products List
  • Support
    • Overview
    • Actions
      • Overview
      • Button
      • ContextMenu
      • Link
    • Controls
      • Overview
      • Checkbox
      • Tag
      • Toggle
    • Forms
      • Overview
      • DatePicker
      • FileUploader
      • Input
      • NumberInput
      • RadioButton
      • Search
      • Select
      • Slider
      • TextArea
      • TextInput
    • Hooks
      • useIsomorphicLayoutEffect
      • useMediaQuery
      • useSettings
    • Navigation
      • Overview
      • AnchorNavigation
      • BannerNavigation
      • Breadcrumb
      • Footer
      • InfoBar
      • MainNavigation
      • SecondaryNavigation
      • StepNavigation
      • SubNavigation
    • Overlay
      • Overview
      • Credits
      • Modal
      • ModalWrapper
      • Notification
      • Tooltip
    • Structure
      • Overview
      • Accordion
      • AuthLayout
      • Avatar
      • Callout
      • Card
      • ContentSwitcher
      • Empty
      • Hero
      • InlineLoading
      • Item
      • List
      • Loading
      • mdxComponents
      • Module
      • Pagination
      • ReadMore
      • Story
      • Table
      • Tabs
      • Text
      • Unit
      • User
      • WFPCoreProvider
      • Wrapper
Components
Actions
ContextMenu

ContextMenu

  • Design
  • Code
  • Props

ContextMenu

Editable Example

import { ContextMenu } from "@wfp/react";

() => {
  return <ContextMenu className="ContextMenu-class" />;
};

PropDefaultDescriptionValue

content

ReactNode
–

Provide content to display when contextMenu is clicked

href

string
–

Provide a href prop as an alternative to onClick

inline

boolean
–

Inline links are used within a sentence or paragraph and are styled with an underline. They should not be paired with an icon.

className

string
–

Provide a custom className

withBorder

boolean
–

Provide a styles with bottom border

trigger

"hover" |"click"
click

Trigger action for the tooltip - can be "hover" or "click".

default: click

placement

"top" |"top-start" |"top-end" |"right" |"right-start" |"right-end" |"bottom" |"bottom-start" |"bottom-end" |"left" |"left-start" |"left-end"
bottom

Position of the tooltip relative to the child element. Uses the Placement type from utils.

default: bottom

children

ReactNode
–

Provide the contents of your ContextMenu

On this page

  • ContextMenu

References

  • Storybook
Storybook
Figma library
Contact us
2025 © World Food Programme