Examples
Default
As Child Link
Selected rows (v2 palette)
With Icons
Size Matrix
Props
DropdownMenu
DropdownMenuCheckboxItem
Leading avatar rendered between the checkbox and the title. Render at 32px to match the design.
DropdownMenuContent
DropdownMenuGroup
DropdownMenuHeader
Action elements rendered at the end of the header row, before the close button — e.g. icon buttons for search/add, or a primary “Done” button that commits a
DropdownMenuReorderGroup reorder. An action that should close the menu needs the menu’s open state controlled (only the built-in close button can dismiss an uncontrolled menu).Fires when the back icon button at the start of the row is activated. Rendering it lets a menu step back from a sub-view — a
type="search" header returning to its title, for instance — without closing the menu.Visual type.
"default" shows a title; "search" shows a search input.DropdownMenuItem
Leading avatar rendered in place of
DropdownMenuItemProps.leadingIcon, for rows that represent a person or account. Pass an Avatar sized to 24. Takes precedence over leadingIcon.Trailing count or number (e.g. an unread total) rendered before
DropdownMenuItemProps.trailingIcon.Optional secondary text rendered on a second line below the label. When provided, the row switches to a two-line layout and the leading/trailing icons align to the title line (top) rather than the row’s vertical centre.
Icon (or other node) rendered before the label. Ignored when
DropdownMenuItemProps.avatar is set. Icons sit in a 16px box in Icons/Secondary, and prop-based icons draw filled at 16px unless they set filled or size themselves (filled={false} opts out). Legacy icons such as TrashBinIcon stay outlined.Marks the item as the current selection in a single-select menu. The row rests on
Buttons/Navigation/Hover with a semibold label; hover still shows Interaction/Hover, because data-[highlighted] outranks the selected class. Under the v2 palette that fill is inverted, with inverted content, and a highlighted row moves to Menu Item Selected Hover so keyboard focus stays visible. The row also gets data-selected, and aria-current unless the consumer already sets aria-checked.A small action drawn at the row’s end, after everything else — typically a 24px
Button rendered asChild as a span. The whole row performs the action through onSelect, so pass a visual, never a second interactive control. Its text joins the row’s accessible name, so the label people see is also the one they can speak. The row does not restyle it: when the row is disabled, disable the visual too (or show its loading state) so it does not look live.Icon (or other node) rendered after the label. Treated like
DropdownMenuItemProps.leadingIcon.DropdownMenuLabel
Vertical placement within the surrounding group.
"top" is used for the first label directly under a header; "default" adds extra top padding to separate it from preceding items.DropdownMenuRadioGroup
DropdownMenuRadioItem
DropdownMenuReorderGroup
Fires after a drop or a keyboard move completes with the new order, plus which item moved and from/to where — enough to call a move-to-position API without diffing the arrays.
Item values in their current order. Must contain one entry per
DropdownMenuReorderItem child, in the same order the children are rendered.Builds the text announced to screen readers after a move. Override to localise it.
DropdownMenuReorderItem
Plain-text name used in the group’s screen-reader announcements and reported in
onReorder’s detail. Defaults to children when that is a string or number, then to value — so pass it whenever value is an id.DropdownMenuSeparator
DropdownMenuTrigger
Exported types
Also exported from@fanvue/ui: DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuHeaderProps, DropdownMenuHeaderSearchProps, DropdownMenuHeaderSize, DropdownMenuHeaderType, DropdownMenuItemProps, DropdownMenuItemSize, DropdownMenuLabelPosition, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuRadioItemSize, DropdownMenuReorderDetail, DropdownMenuReorderGroupProps, DropdownMenuReorderItemProps, DropdownMenuSeparatorProps, DropdownMenuTriggerProps, DropdownMenuVariant.
Setup: Installation · Theming