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

Advanced AI Prompt for Radix UI Dropdown with Async Shimmer States

Customize the variables below to instantly engineer your prompt.

Required Variables

radix-dropdown-async-loading-a11y.txt
Act as a Full-Stack React Developer. Build a highly accessible Radix UI Dropdown Menu that defers fetching its list items from [API_ENDPOINT] until the exact moment the 'onOpenChange' event fires. Implement a robust [LOADING_PATTERN] (e.g., animated Shimmer/Skeleton rows) that maintains the physical dimensions of the menu and is properly announced as 'Loading data' by screen readers. Handle complex edge cases: implement [RETRY_LOGIC] for failed network fetches and render an accessible empty state. Ensure the 'DropdownMenu.Content' portal does not shift its layout abruptly or lose focus once the payload resolves. Utilize Radix's 'forceMount' prop if necessary to orchestrate seamless entrance animations alongside the fetch.

Example Text Output

"The AI outputs a DropdownMenu component that uses a useEffect to trigger fetches onOpenChange, utilizing skeleton items with role='menuitem' to maintain keyboard navigation during the load."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Radix UI Dropdown with Async Shimmer States" prompt used for?

The AI outputs a DropdownMenu component that uses a useEffect to trigger fetches onOpenChange, utilizing skeleton items with role='menuitem' to maintain keyboard navigation during the load.

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.