📢 Introducing the React Aria Sheet component!
@devongovett44K followers
54,406 views
36 Comments
Comments from the original post on X (Twitter)

@devongovett
Also in this release: Improved overlay positioning with software keyboard, Turbopack optimize locales plugin, and plenty of bug fixes. Thanks to everyone who contributed! 😍
11 likes

@ttsirkia
Looks great! Any suggestions how to create, for example, a trigger which would use Sheet on mobile devices but Dialog when using a normal size screens?
4 likes

@devongovett
Thanks! Maybe a wrapper component with a media query? let isDesktop = useMediaQuery("(width >= 768px)") return isDesktop ? <DialogTrigger /> : <SheetTrigger />

@ttsirkia
That could be one option. I guess that in most contexts the Sheet contents would work fine in Dialog when using a larger screen. Sheet does not feel a natural component/pattern outside the mobile world.

@peteremad944
@devongovett Side shees feels good on desktops

@ttsirkia
@devongovett Yes, that’s true. Using ”right” for the position works very well in that context.

@Mackseraner
Amazing job, the sheet feels really great! Thanks for the write-up. Very interesting to see how you used scroll-snap and timeline animations for this. Did you have to do any special magic to deal with iOS Safari's address bar?
2 likes

@devongovett
Thanks! Yes I sure did. 😅 We make heavy use of dynamic viewport units, and also add some extra padding so you can swipe the sheet fully off the screen even behind the toolbar.
4 likes

@Mackseraner
Uff, this damn address bar 😅

@solomania
This is extremely impressive!
2 likes

@tobimori
nice, finally i can throw out my custom code for this
1 like

@sqrtsanta
Holy moly, that's some marvelous engineering. ngl I continue to use react only because it has react-aria
1 like

@josiahwiebe
this is very nice! brb migrating from vaul
1 like

@jeffrosen
Snap points feature is beautiful
1 like

@JasonGerbes
Great work! Impressive use of modern CSS
1 like

@emoporemilio
sweet

@DanielKempner
Holy grail component.

@itsme_juliano
Let me see if I understand correctly: Shadcn Drawer will be based on RAC Sheet, while Shadcn Sheet is based on RAC Dialog? 😅

@ogdakke
Great work. Feels silky. base-ui could take some inspo from here

@Rodych
looks perfect 😍








