Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#UI

Advanced AI Prompt for Radix UI Dropdown Menu Virtualization

Customize the variables below to instantly engineer your prompt.

Required Variables

radix-ui-dropdown-menu-virtualization.txt
Act as a Frontend Performance Engineer. Design a high-performance Radix UI Dropdown Menu capable of rendering over [ITEM_COUNT] list items without introducing any main-thread UI lag. Deeply integrate [VIRTUALIZATION_LIBRARY] (e.g., TanStack Virtual) to handle the DOM node rendering while strictly maintaining full Radix native keyboard navigation (ArrowUp/ArrowDown, Home, End). Implement a highly optimized, debounced [SEARCH_LOGIC] filtering mechanism within the dropdown header. Critically, ensure that screen readers correctly announce the total true number of items versus the currently virtualized subset using 'aria-setsize' and 'aria-posinset'. Provide the full TypeScript interface bridging the virtual list indices with Radix's internal roving focus state.

Example Text 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."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Radix UI Dropdown Menu Virtualization" prompt used for?

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

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.