Dropdown

Menu of actions revealed from a trigger

Category: overlay · WCAG 2.2-AA · overlay, menu, actions

States

Props

PropTypeDefaultDescription
triggerReactElementThe element that opens the dropdown when activated.
items{ label: string; value: string; icon?: ReactNode; disabled?: boolean; separator?: boolean }[]The items to render.
onSelect(value: string) => voidCalled with the selected value.
placement'bottom-start' | 'bottom-end'bottom-startPlacement relative to the trigger.
openbooleanWhether the component is open (controlled).
onOpenChange(open: boolean) => voidCalled with the next open state when it changes.

Design tokens

When to use

When not to use

How to build an accessible Dropdown in React →

Examples

Basic

<Dropdown trigger={<Button>Actions</Button>} items={[{ label: "Edit", value: "edit" }]} onSelect={handle} />

Related components

← Back to docs