@vue-dnd-kit/core
v2.2.0
Published
Core functionality for Vue DnD Kit - a lightweight Vue 3 library for building performant and accessible drag and drop interfaces
Downloads
23,637
Maintainers
Readme
Vue DnD Kit - Core Package
About
Vue DnD Kit — lightweight drag & drop library for Vue 3. Built around a provider (DnDProvider) and composables: makeDraggable, makeDroppable, makeSelectionArea, makeConstraintArea.
- Lightweight — small bundle size, no extra dependencies (Vue as peer only)
- Flexible — works with any layout and design system
- Accessible — full keyboard support (start, move, cancel, drop)
- TypeScript — fully typed
Features
- Composables API —
makeDraggable,makeDroppable,makeSelectionArea,makeConstraintArea - Provider-based —
DnDProvider+useDnDProviderfor state access - Keyboard support — Enter/Space for start and drop, arrows for movement, Escape to cancel
- Modifier keys — drag only when modifier held (e.g. Ctrl)
- Custom overlay — custom drag preview via slot or
renderoption
Installation
npm install @vue-dnd-kit/coreyarn add @vue-dnd-kit/corepnpm add @vue-dnd-kit/corePeer dependency: Vue 3
