ResponsiveDialogDrawer Demo

This component automatically shows as a dialog on desktop and a drawer on mobile devices. Try resizing your browser or opening on different devices to see the responsive behavior.

Basic Example

A simple form with title and description.

With Cancel Button

Shows a cancel button on mobile drawer (not visible on desktop dialog).

Custom Dialog Size

Using a larger dialog size on desktop with custom className.

Without Description

Sometimes you don't need a description, just a title.

Controlled State

Control the open/close state externally. Current state: Closed

Custom Trigger Element

You can use any element as a trigger, not just buttons.

Usage Instructions

• On desktop: All examples show as modal dialogs

• On mobile: All examples show as bottom drawers

• Try resizing your browser window to see the responsive behavior

• The component automatically handles the transition between desktop and mobile modes