Features
Multi-framework
One tool, endless possibilities: integrate with Svelte, Vue, React, Solid, and more.
Core logic is implemented only once, so you can use Neodrag in different frameworks, and get
the same predictible behavior
npm install @neodrag/ svelte Transparent bundle size
Brotli-minified estimates for @neodrag/core v3. Default drag plugins are always
included; toggles add optional drag, drop, or sortable helpers. Learn more
7.55 KB
+39 B over default drag stack
- Default stack7.51 KB
- Your optional drag39 B
- Drop targets+0 B
Quick presets
Engine-only floor: 7.50 KB. Regenerate with pnpm sizes in docs/scripts after changing core.
SSR-friendly
Neodrag is Server Side Renderable. Will play well with meta-frameworks like Sveltekit, NextJS, Nuxt, Vitepress, SolidStart and more

Feature rich
Play with the kitchen sink demo below
You can only drag it within these constraints
100
100
200
200
I will drag in all directions
I will drag horizontally
I will drag vertically
I will lock scrolling
I track my position:
x: 0
y: 0 I can only be dragged by the handle 👆
I can be dragged with all the handles
I can be dragged anywhere
I snap to 25x25 grid
I snap to 100x25 grid
I can be dragged within my parents container only
I can be dragged within the body
Bounds
top: 20
bottom: 50
left: 200
right: 400I will return to my position on drop
I will return to my position on drop, but with style! 😉
disabled: true Can't drag me at all