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
Create a polymorphic Radix UI component that functions as a centered Dialog on desktop and transforms into a bottom-sheet Drawer on mobile (below [BREAKPOINT]). Use [ANIMATION_LIBRARY] for smooth layout morphing. The prompt must address the unique a11y requirements for touch-based dragging in the drawer state versus keyboard escapes in the dialog state. Include logic for 'vaul' integration if necessary, and ensure that the [TRANSITION_SPEED] feels native. Provide a detailed SCSS or Tailwind config for 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.