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
| Dimension | scrollsheet | Radix Dialog |
|---|---|---|
| What it is | A styled centered dialog that is one presentation of a sheet | An unstyled dialog primitive, one of a family of Radix primitives |
| Modal mechanism1 | Native <dialog> showModal() in the top layer | Portal, FocusScope, react-remove-scroll and hideOthers in JavaScript |
| Direct dependencies | 0 | 15 (Radix utility packages and react-remove-scroll) |
| JavaScript, compressed2 | 14.20 kB (Dialog import) | 12.39 kB (all Dialog parts) |
| Default styling | Backdrop, card, and a zoom and fade on a spring | None. You write the CSS and the animation |
| Dragging and snap points | Yes, when the same component is a sheet | No. The Dialog source has no drag or snap handling |
| Phone sheet, desktop dialog | desktopSide="center" | You build it |
| Control over mounting and focus3 | forceMount, portal container, onOpenAutoFocus and onCloseAutoFocus are dropped | All supported |
| React versions | 18+ | 16.8 and up |
| npm downloads, last week4 | 241 | 90,285,759 |
- @radix-ui/react-dialog 1.3.1,
src/dialog.tsx. - 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. - From the migration guide.
- 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
containeror 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
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