The Dropdown component is a container for displaying selectable options in a dropdown menu. It provides a way to present a list of selectable options with various styling and interaction capabilities.
A simple dropdown container with options.
Enhance dropdown options with icons for better visual communication.
Add descriptive text to dropdown options for additional context.
Customize the appearance of the dropdown with Flex props.
The Dropdown component follows accessibility best practices:
- Uses role="listbox" for the dropdown container
- Provides aria-selected state for selected options
- Supports keyboard navigation
- Properly manages focus when opening and closing
- DropdownWrapper - A container for creating dropdown menus with positioning and state management
- Option - Individual selectable items used within dropdowns