Menu

A list of actions behind a button, in groups.

Example

tsx
<Menu>
  <MenuTrigger>Actions</MenuTrigger>
  <MenuGroup>
    <MenuGroupLabel>Page</MenuGroupLabel>
    <MenuItem shortcut="⌘D">Duplicate</MenuItem>
    <MenuItem>Rename</MenuItem>
  </MenuGroup>
  <MenuSeparator />
  <MenuItem disabled>Archive</MenuItem>
</Menu>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Menu, MenuTrigger, MenuGroup, MenuGroupLabel, MenuItem, MenuSeparator } from "@dash/server";

Props

MenuItemProps

Prop
Type
Description
onClick() => void
disabledboolean
shortcutstring
PreviousPopover
On this page