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
childrenRequiredReactNodeGroups, items and hints
side'top''bottom''left''right'Which side of the trigger it opens onDefault:
bottomalign'start''center''end'How it lines up with the triggerDefault:
endsideOffsetnumberSpace between the trigger and the menuDefault:
4widthnumberFixed width. The More menu is 248
classNamestringAdditional CSS classes
MenuItem
PropTypeDescription
labelRequiredstringWhat it does, starting with a verb
iconIconNameA 16px Kuori icon before the label
shortcutstringShown on the right in text/quaternary
onClick() => voidRuns the action and closes the menu
disabledbooleantext/disabled, skipped by the keyboardDefault:
falseMenuCheckboxItem and MenuRadioItem
PropTypeDescription
labelRequiredstringThe option
iconIconNameA 14px icon. Recolour it with iconClassName
checkedbooleanCheckbox items: whether it is picked. The check replaces the count
countnumberCheckbox items: how many emails match
valuestringRadio items: the value inside MenuRadioGroup
EmailMoreMenu
PropTypeDescription
senderRequiredstringThe sender's name, for Block “{sender}”
onAction(action: MoreAction) => voidCalled with the action picked