Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Radix UI Dropdown Menu Virtualization

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [ITEM_COUNT]
  • [VIRTUALIZATION_LIBRARY]
  • [SEARCH_LOGIC]
radix-ui-dropdown-menu-virtualization.txt
Design a high-performance Radix UI Dropdown Menu capable of rendering [ITEM_COUNT] items without UI lag. Integrate [VIRTUALIZATION_LIBRARY] to handle the list rendering while maintaining full Radix keyboard navigation (ArrowUp/ArrowDown). Implement a [SEARCH_LOGIC] filtering mechanism within the dropdown. Ensure that screen readers correctly announce the total number of items versus the visible subset. Provide the full TypeScript interface and the focus-management logic required to bridge the virtual list with Radix's internal state.

Example Output

"The AI provides a TypeScript-based DropdownMenu implementation using tanstack-virtual, ensuring ARIA-setsize and ARIA-posinset are updated dynamically as the user scrolls."