0
Components
API reference

Menu

A floating dropdown menu built on Base UI with expressive tonal surfaces, segmented groups, checkboxes, switches, radio items, and submenus.

Installation

Usage

Examples

Segmented (gap)

Vibrant

Checkboxes & Switch

Radio Group

API Reference

Alias for Menu.Root from Base UI. Manages open state and keyboard navigation.

PropTypeDefaultDescription
openboolean-Controlled open state
defaultOpenbooleanfalseInitial uncontrolled open state
onOpenChange(open: boolean) => void-Called when the open state changes
modalbooleantrueWhether the menu behaves as a modal
...propsBase UI Menu Root props-All other Menu Root props are supported

Positioned floating menu surface wrapped in a portal and ScrollArea.

PropTypeDefaultDescription
colorScheme"standard" | "vibrant""standard"Surface tint scheme
gapbooleanfalseSplits each MenuGroup into its own floating surface card
scrollFadebooleantrueAdds fade masks while scrolling long menus
side"top" | "bottom" | "left" | "right""bottom"Preferred side relative to the trigger
align"start" | "center" | "end""center"Alignment along the chosen side
sideOffsetnumber6Distance in pixels from the trigger
portalPropsMenu.Portal.Props-Props forwarded to the internal portal
...propsBase UI Menu Popup props-All standard menu popup props

Interactive menu entry with spring corner morphing on highlight.

PropTypeDefaultDescription
variant"default" | "destructive""default"Applies destructive text styling when destructive
insetbooleanfalseAdds leading padding to align with icon items
disabledbooleanfalseDisables interaction and dims the item

Toggleable menu item supporting checkmark or inline Switch styles.

PropTypeDefaultDescription
variant"default" | "switch""default"Renders a leading check or a trailing Switch
checkedboolean-Controlled checked state
defaultCheckedbooleanfalseInitial uncontrolled checked state
onCheckedChange(checked: boolean) => void-Called when the checked state changes

Single-selection radio items highlighting the active choice with --menu-sel-bg.

Nested submenu primitives with automatic inline-end positioning and trailing chevron indicator.

Grouping, labels, dividers, keyboard shortcut hints, and trigger primitives. Also re-exported under DropdownMenu* aliases for shadcn compatibility.

© taut ui — built with Base UI and Tailwind CSS v4.