new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Mantine · all subjects

menu/context-menu

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Menu.ContextMenu for right-click menus

Use Menu.ContextMenu to open the menu dropdown at the cursor position on right-click. It replaces Menu.Target and wraps the element that should respond to the contextmenu event. The browser's default context menu is suppressed, and the Mantine Menu.Dropdown is positioned at the cursor instead. Right-clicking again repositions the dropdown to the new coordinates. Set disabled to restore the browser's default context menu.

Menu.ContextMenu longPressDelay example

```tsx import { Menu } from '@mantine/core'; function Demo() { return ( <Menu> <Menu.ContextMenu longPressDelay={400}> <div>Long-press me</div> </Menu.ContextMenu> <Menu.Dropdown> <Menu.Item>Copy</Menu.Item> <Menu.Item>Paste</Menu.Item> </Menu.Dropdown> </Menu> ); } ``` This example shows how to set a custom longPressDelay on Menu.ContextMenu for touch devices.

Give your agent this brain