flâneur — a map of the web's best reading

Installation - @dnd-kit – Documentation

docs.dndkit.com · 385 words · saved by 1 readers

Home Examples Github Search ⌘ K Overview INTRODUCTION Installation Quick start API DOCUMENTATION DndContext Droppable Draggable Sensors Modifiers PRESETS Sortable GUIDES Accessibility Powered By GitBook Installation To get started with @dnd-kit, install the core library via npm or yarn: npm install @dnd-kit/core You'll also need to be make sure you have peer dependencies installed. Chances are you already have react and react-dom installed in your project, but if not, make sure to install them: npm install react react-dom Packages @dnd-kit is a monorepo. Depending on your needs, you may also want to install other sub-packages that are available under the @dnd-kit namespace. Core library In order to keep the core of the library small, @dnd-kit/core only ships with the main building blocks that the majority of users will need most of the time for building drag and drop experiences: ​Context provider​ Hooks for: ​Draggable​ ​Droppable​ ​Drag Overlay​ Sensors for: ​Pointer​ ​Mouse​ ​T

There’s a new version of @dnd-kit available. We recommend you use the latest version instead. To get started with the legacy version of @dnd-kit , install the core library via npm or yarn : npm install @dnd-kit/core You’ll also need to be make sure you have peer dependencies installed. Chances are you already have react and react-dom installed in your project, but if not, make sure to install them: npm install react react-dom Packages @dnd-kit is a monorepo . Depending on your needs, you may also want to install other sub-packages that are available under the @dnd-kit namespace. Core library I

Explore this link on the map →

related reading