TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Puck 0.18 adds drag-and-drop for CSS grid and Flexbox

51 pointsby chrisvxd4 months ago
Hey HN!<p>I just released Puck 0.18 with a new drag-and-drop engine for CSS grid and flexbox support.<p>You can now use Puck to create a page builder that behaves like a design tool, but embedded within your own app and using your own React components.<p>To use it, just add `display: flex` (or grid, etc) to your DropZone and Puck will gracefully handle drag-and-drop across all dimensions.<p>Shout out to the dnd-kit maintainer Claudéric for the collaboration and support (if you’re reading this, I just sponsored you on GitHub!) and as always, a huge thanks to my wonderful community for all the testing and feedback. It would not be possible without you!<p>If you&#x27;ve not heard of Puck, it&#x27;s is an open-source visual editor for React that I maintain, available under MIT so you can safely embed it in your product.<p>Some background: This is the culmination of 18 months of iteration, and has required several breakthroughs in drag-and-drop to achieve: drag-and-drop across iframes, accounting for layout shift across nested components, and natural collision detection are some of the problems that have kept me extremely busy. I hope to write about the process if time allows.<p>The implementation is bleeding edge, using the experimental branch of dnd-kit with custom collision algorithms and plugins to implement a drag-and-drop experience that feels similar to react-beautiful-dnd, but across multiple dimensions.<p>Happy to answer any questions! Will endeavour to reply to everyone.

6 comments

lawrencechen4 months ago
Great work!<p>Is it possible to resize grid rows&#x2F;grid cols directly in the editor? Similar to the bottom-right handle in react-grid-layout?<p><a href="https:&#x2F;&#x2F;react-grid-layout.github.io&#x2F;react-grid-layout&#x2F;examples&#x2F;00-showcase.html" rel="nofollow">https:&#x2F;&#x2F;react-grid-layout.github.io&#x2F;react-grid-layout&#x2F;exampl...</a>
评论 #42841504 未加载
mgreenw4 months ago
Puck is a marvel of drag and drop engineering and a wonderful open source project. Kudos to the team for this release!
评论 #42841619 未加载
ayush23904 months ago
The drag and drop animation looks very smooth
评论 #42792942 未加载
doberdog4 months ago
Some time ago I was looking for something similar to this. For even angular project.<p>I&#x27;ll make a note of it, and check more calmly if it fits. But it looks very good.<p>Congratulations
评论 #42841611 未加载
sandreas4 months ago
I used gridstack[1] in the past. How does Puck compare?<p>1: <a href="https:&#x2F;&#x2F;gridstackjs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gridstackjs.com&#x2F;</a>
评论 #42841600 未加载
ranger_danger4 months ago
How does this compare to Bootstrap Studio?
评论 #42830482 未加载