Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Radix UI Dropdown with Selectable Checkbox Groups
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[GROUP_NAMES] - ✦
[SELECTION_LIMIT] - ✦
[STATE_MANAGEMENT]
radix-dropdown-checkbox-groups.txt
Engineer a Radix UI Dropdown Menu containing multiple [GROUP_NAMES] of checkbox items. Implement a [SELECTION_LIMIT] per group. The dropdown must remain open while the user toggles multiple items (using 'onSelect={(e) => e.preventDefault()}'). Provide a [STATE_MANAGEMENT] solution (e.g., useReducer) to track complex selection states. Ensure that the 'aria-checked' state is correctly applied to each DropdownMenu.CheckboxItem and that the overall summary is announced via an ARIA-live region when the dropdown closes.
Example Output
"The AI produces a multi-select filter dropdown where users can pick multiple categories without the menu closing, with a summary of selections in the footer."