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

Advanced AI Prompt for Responsive Dialog-to-Drawer Transition

Customize the variables below to instantly engineer your prompt.

Required Variables

responsive-dialog-drawer-a11y.txt
Act as a UX/UI Systems Developer. Create a polymorphic React component that functions as a perfectly centered Radix UI Dialog on desktop viewports, but dynamically transforms into a bottom-sheet Drawer on mobile (triggering precisely below the [BREAKPOINT]). Utilize [ANIMATION_LIBRARY] for the smooth layout morphing between the two DOM structures. The prompt must explicitly address the conflicting a11y requirements: touch-based drag-to-dismiss in the drawer state versus standard keyboard 'Escape' handling in the dialog state. Integrate logic for the 'vaul' drawer primitive if necessary, ensuring the [TRANSITION_SPEED] feels native to iOS/Android. Provide a detailed SCSS or Tailwind configuration handling the responsive visibility logic.

Example Text Output

"The result is a unified 'ResponsiveModal' component that swaps the Radix DialogContent primitive for a Vaul Drawer primitive based on a media query hook."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Responsive Dialog-to-Drawer Transition" prompt used for?

The result is a unified 'ResponsiveModal' component that swaps the Radix DialogContent primitive for a Vaul Drawer primitive based on a media query hook.

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.