Menu

Menus, dropdowns and the email More menu. bg/overlay with Glass/Overlay, radius 12, 4 inside. Built on Base UI, so keyboard, focus and dismissal come for free.

Groups and items

Items are 32 tall: a 16px icon, the label in Body/SM and an optional shortcut in text/quaternary. Groups sit 8 apart with no dividers. The menu grows from the corner of its trigger (150ms in, 100ms out, scale 0.97 and opacity), never from the centre.

Email More menu

EmailMoreMenu opens from “…” in the email toolbar and grows from its top right. Three groups: the message, the sender, tools. Star is never in here; it lives in the toolbar.

Usage

import { Menu, MenuContent, MenuGroup, MenuItem, MenuTrigger } from "@kuori/ui/menu";
<Menu>  <MenuTrigger>Open menu</MenuTrigger>  <MenuContent>    <MenuItem icon="print" label="Print" shortcut="⌘P" />  </MenuContent></Menu>

MenuContent

PropTypeDescription
childrenRequired
ReactNode
Groups, items and hints
side
'top''bottom''left''right'
Which side of the trigger it opens onDefault: bottom
align
'start''center''end'
How it lines up with the triggerDefault: end
sideOffset
number
Space between the trigger and the menuDefault: 4
width
number
Fixed width. The More menu is 248
className
string
Additional CSS classes

MenuItem

PropTypeDescription
labelRequired
string
What it does, starting with a verb
icon
IconName
A 16px Kuori icon before the label
shortcut
string
Shown on the right in text/quaternary
onClick
() => void
Runs the action and closes the menu
disabled
boolean
text/disabled, skipped by the keyboardDefault: false

MenuCheckboxItem and MenuRadioItem

PropTypeDescription
labelRequired
string
The option
icon
IconName
A 14px icon. Recolour it with iconClassName
checked
boolean
Checkbox items: whether it is picked. The check replaces the count
count
number
Checkbox items: how many emails match
value
string
Radio items: the value inside MenuRadioGroup

EmailMoreMenu

PropTypeDescription
senderRequired
string
The sender's name, for Block “{sender}”
onAction
(action: MoreAction) => void
Called with the action picked