Skip to content

Responsive profiles

Below 720px, drag it as a bottom sheet. At 720px and wider, it opens as a centered dialog.

<Sheet.Root side="bottom" desktopSide="center">

The same content renders as a bottom sheet below the breakpoint and a centered dialog above it.

desktopSide applies at desktopBreakpoint, which defaults to 768 pixels. This matches the desktop presentation CSS breakpoint. Override it per Sheet.Root:

<Sheet.Root side="bottom" desktopSide="center" desktopBreakpoint={1024}>

desktopBreakpoint requires desktopSide. Used alone, it has no effect and warns once in development.

An open sheet changes presentation instantly when the viewport crosses the breakpoint. It stays open, with no transition, and changes back when the viewport crosses again.

The server render and first client paint both use side. A matchMedia subscription applies desktopSide after mount, keeping hydration consistent. Account for this initial change when using defaultOpen or opening the sheet programmatically before mount completes.

side and desktopSide take the same five values ('bottom' | 'top' | 'left' | 'right' | 'center') and don’t have to relate to each other. A bottom sheet that becomes a left drawer on desktop:

<Sheet.Root side="bottom" desktopSide="left">

You can also change a right panel to a centered dialog or a top sheet to a right drawer. Any pair of sides is supported.

Desktop presentation changes styling above 768px without changing side. It docks bottom sheets as drawers and squares off side-sheet edges. Use desktopSide when the side itself should change, such as a bottom sheet becoming a centered dialog.