scrollsheet vs Radix Dialog

Radix Dialog is an unstyled primitive with a huge install base. scrollsheet's Dialog is a styled native dialog that shares an engine with bottom sheets. They overlap on one job, and Radix wins on several things.

Side by side

DimensionscrollsheetRadix Dialog
What it isA styled centered dialog that is one presentation of a sheetAn unstyled dialog primitive, one of a family of Radix primitives
Modal mechanism1Native <dialog> showModal() in the top layerPortal, FocusScope, react-remove-scroll and hideOthers in JavaScript
Direct dependencies015 (Radix utility packages and react-remove-scroll)
JavaScript, compressed214.20 kB (Dialog import)12.39 kB (all Dialog parts)
Default stylingBackdrop, card, and a zoom and fade on a springNone. You write the CSS and the animation
Dragging and snap pointsYes, when the same component is a sheetNo. The Dialog source has no drag or snap handling
Phone sheet, desktop dialogdesktopSide="center"You build it
Control over mounting and focus3forceMount, portal container, onOpenAutoFocus and onCloseAutoFocus are droppedAll supported
React versions18+16.8 and up
npm downloads, last week424190,285,759
  1. @radix-ui/react-dialog 1.3.1, src/dialog.tsx.
  2. Bundled with Bun, minified, React external, using the options in scripts/lib/bundle-measure.ts. @radix-ui/react-dialog 1.3.1, measured 5 Nov 2026. Both figures are brotli; many libraries quote gzip, which runs larger. Radix is smaller here. scrollsheet's figure includes the sheet engine and a default spring animation.
  3. From the migration guide.
  4. npm downloads API, 28 Oct to 3 Nov 2026.

The swap

- import * as Dialog from "@radix-ui/react-dialog";
+ import { Dialog } from "scrollsheet";
+ import "scrollsheet/styles.css";

Root, Trigger, Portal, Overlay, Content, Title, Description and Close all exist. The migration guide lists what each dropped prop becomes.

The centered presentation the Dialog export renders. Press Escape or click the backdrop.

Choose Radix Dialog if

  • You already use other Radix primitives and want one set of conventions.
  • You want an unstyled dialog, or you animate with your own tooling through forceMount.
  • You need the portal container or the focus callbacks.
  • You support React older than 18, or browsers without <dialog>.
  • You want the smaller bundle for a plain dialog.

Choose scrollsheet if

  • You want a dialog on desktop and a bottom sheet on phones from one component.
  • You want the browser's top layer instead of a z-index and a portal.
  • You want a spring open and close without writing the keyframes.
  • You are adding bottom sheets anyway and prefer one package.

A dialog that cannot be dismissed by accident

Non-dismissible confirm

Full source on GitHub ↗

dismissible=false and disableDrag. Only the buttons close it.

Questions

Should I replace Radix Dialog with scrollsheet?

Only if you want the same dialog to become a bottom sheet on phones, or you want a native top-layer dialog with a spring animation built in. If Radix Dialog works and you do not need sheets, keep it. It is smaller, and it shares conventions with the other Radix primitives you probably already use.

Will my data-state animation CSS keep working?

The data-state="open" and "closed" attributes are stamped on Content's element, so keyframes that target them keep matching. The Overlay element renders nothing, so overlay CSS needs to move to .scrollsheet-backdrop or --scrollsheet-backdrop. See the migration guide.

Can I use scrollsheet next to other Radix primitives?

Yes. The Dialog export replaces only Radix's dialog. Popover, Dropdown Menu and the rest are unaffected.

Try it in your app

$bun add scrollsheet

Install guideLive examplesGitHub