XDSDropdownMenuItemData@xds/core · DropdownMenu
Preview coming soon

Usage

A dropdown menu that displays a list of actionable items in a popup triggered by a button. Use to present action options as a next step in a process, or to offer contextual actions without cluttering the interface.

Best practices

GuidancePractices
DoKeep menu items concise and action-oriented so users can scan options quickly.
DoUse sections and dividers to group related actions when the menu has many items.
Don'tUse a DropdownMenu for navigation — use a navigation component instead.
Don'tPlace more than 10–12 items in a single menu without grouping them into sections.

Import

ts
import {XDSDropdownMenuItemData} from '@xds/core/DropdownMenu'

Props

PropTypeDescription
labelrequired
stringDisplay label for the item.
onClick
() => voidCallback fired when the item is selected.
isDisabled
boolean (default: false)Whether the item is disabled; disabled items are skipped during keyboard navigation.
icon
XDSIconTypeIcon to display before the item label. See `npx xds docs icons` for valid semantic names.