The Dropdown Component is an essential UI element designed to offer users a compact and efficient way to select one or more options from a list. Perfect for conserving screen real estate while maintaining an intuitive and accessible selection process, the dropdown is ideal for forms, filters, and anywhere user choice is needed. Its seamless integration and customization options make it a versatile tool for any application.
Anatomy
The anatomy of the Dropdown Component consists of a trigger element, often displayed as a button or field, that users interact with to reveal the options list. This list is dynamically populated and can support various item types, including text, icons, or even custom templates. Optional elements like search fields or section dividers further enhance usability and organization within the dropdown.
Properties
The Plus UI Dropdown Component offers customizable properties to fit various design and functionality needs, categorized into kinds, size, and orientation.
Kinds
Button Dropdown Component integrates a dropdown with a button, ideal for actions or options.
Button Group Dropdown Component is a group of buttons, for cohesive multiple actions.
Avatar Dropdown Component is attached to an avatar, perfect for user profile or settings options
The Plus UI Dropdown Component is crafted with meticulous attention to layout and spacing, ensuring that each element is perfectly positioned for optimal readability and accessibility. The spacing between options is carefully calibrated to prevent accidental selections, while the overall layout is designed to be fluid and adaptable to any screen size, maintaining its aesthetic integrity and functionality across devices.
Light & Dark Mode
Designed to flawlessly integrate with any design aesthetic, the Plus UI Dropdown Component offers full support for light and dark modes. It automatically adjusts its colors based on the user's system preferences or application settings, providing a visually cohesive experience that reduces eye strain and enhances usability in varying lighting conditions.
Accessibility
Accessibility is paramount in the design of the Plus UI Dropdown Component. It is fully compliant with modern web accessibility standards, including keyboard navigation and screen reader support. ARIA roles and attributes are thoughtfully applied to ensure that all users can navigate and select options with ease, making the dropdown component a model of inclusivity and user-centric design.
Design System
API
Kind
Size
Orientation
Criteria
Description
Status
Property
Description
Type
Accepted Values
Default
Button
Small
Right
Button Group
Medium
Middle
Avatar
Large
Left
ARIA Attributes
Ensures ARIA attributes are allowed for an element's role
✔️ Passed
ARIA Hidden Elements
Ensure the autocomplete attribute is correct and suitable for the form field
✔️ Passed
ARIA Valid Values
Ensures all ARIA attributes have valid values
✔️ Passed
ARIA Valid Names
Ensures attributes that begin with aria- are valid ARIA attributes
✔️ Passed
Discernible Text
Ensures buttons have discernible text
✔️ Passed
ID Attributes
Ensures every id attribute value is unique
✔️ Passed
Interactive Controls
Ensures interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies
✔️ Passed
Tabindex Attribute
Ensures tabindex attribute values are not greater than 0
✔️ Passed
Color Contrast
Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds.