ContextMenu

The same menu on right-click and the context-menu key.

View source
Right-click this request
import { ContextMenu } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    The area that opens the menu on a right click or long press.

  • defaultOpen
    boolean

    Whether it starts open, when the component keeps its own state.

  • modal
    boolean

    Blocks the rest of the page while the menu is open.

  • onOpenChange
    ((open: boolean) => void)

    Called when it opens or closes.

  • open
    boolean

    Whether it is open, when you control it.