XDSDropdownMenuSection@xds/core · DropdownMenu
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
| Guidance | Practices |
|---|---|
| Do | Keep menu items concise and action-oriented so users can scan options quickly. |
| Do | Use sections and dividers to group related actions when the menu has many items. |
| Don't | Use a DropdownMenu for navigation — use a navigation component instead. |
| Don't | Place more than 10–12 items in a single menu without grouping them into sections. |
Import
tsimport {XDSDropdownMenuSection} from '@xds/core/DropdownMenu'
Props
| Prop | Type | Description |
|---|---|---|
typerequired | 'section' | Discriminant value that identifies this entry as a section. |
itemsrequired | XDSDropdownMenuItemData[] | The actionable items that belong to this section. |
title | string | Optional header text displayed above the section items. |