react-beautiful-dnd
Beautiful and accessible drag and drop for lists with React
Last updated 5 years ago by alexreardon .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install react-beautiful-dnd 
SYNC missed versions from official npm registry.

react beautiful dnd logo

react-beautiful-dnd

Beautiful and accessible drag and drop for lists with React

CircleCI branch npm

quote application example

Play with this example if you want!

Core characteristics

  • Beautiful and natural movement of items ๐Ÿ’
  • Accessible: powerful keyboard and screen reader support โ™ฟ๏ธ
  • Extremely performant ๐Ÿš€
  • Clean and powerful api which is simple to get started with
  • Plays extremely well with standard browser interactions
  • Unopinionated styling
  • No creation of additional wrapper dom nodes - flexbox and focus management friendly!

Get started ๐Ÿ‘ฉโ€๐Ÿซ

We have created a free course on egghead.io ๐Ÿฅš to help you get started with react-beautiful-dnd as quickly as possible.

course-logo

Currently supported feature set โœ…

  • Vertical lists โ†•
  • Horizontal lists โ†”
  • Movement between lists (โ–ค โ†” โ–ค)
  • Combining items
  • Mouse ๐Ÿญ, keyboard ๐ŸŽนโ™ฟ๏ธ and touch ๐Ÿ‘‰๐Ÿ“ฑ (mobile, tablet and so on) support
  • Multi drag support
  • Incredible screen reader support โ™ฟ๏ธ - we provide an amazing experience for english screen readers out of the box ๐Ÿ“ฆ. We also provide complete customisation control and internationalisation support for those who need it ๐Ÿ’–
  • Conditional dragging and conditional dropping
  • Multiple independent lists on the one page
  • Flexible item sizes - the draggable items can have different heights (vertical lists) or widths (horizontal lists)
  • Add and remove items during a drag
  • Compatible with semantic <table> reordering - table pattern
  • Auto scrolling - automatically scroll containers and the window as required during a drag (even with keyboard ๐Ÿ”ฅ)
  • Custom drag handles - you can drag a whole item by just a part of it
  • Able to move the dragging item to another element while dragging (clone, portal) - Reparenting your <Draggable />
  • Full programmatic api ๐ŸŽฎ
  • ๐ŸŒฒ Tree support through the @atlaskit/tree package
  • A <Droppable /> list can be a scroll container (without a scrollable parent) or be the child of a scroll container (that also does not have a scrollable parent)
  • Independent nested lists - a list can be a child of another list, but you cannot drag items from the parent list into a child list
  • Server side rendering (SSR) compatible - see resetServerContext()
  • Plays well with nested interactive elements by default

Motivation ๐Ÿค”

react-beautiful-dnd exists to create beautiful drag and drop for lists that anyone can use - even people who cannot see. For a good overview of the history and motivations of the project you can take a look at these external resources:

Not for everyone โœŒ๏ธ

There are a lot of libraries out there that allow for drag and drop interactions within React. Most notable of these is the amazing react-dnd. It does an incredible job at providing a great set of drag and drop primitives which work especially well with the wildly inconsistent html5 drag and drop feature. react-beautiful-dnd is a higher level abstraction specifically built for lists (vertical, horizontal, movement between lists, nested lists and so on). Within that subset of functionality react-beautiful-dnd offers a powerful, natural and beautiful drag and drop experience. However, it does not provide the breadth of functionality offered by react-dnd. So react-beautiful-dnd might not be for you depending on what your use case is.

Documentation ๐Ÿ“–

About ๐Ÿ‘‹

Sensors ๐Ÿ”‰

The ways in which somebody can start and control a drag

API ๐Ÿ‹๏ธโ€

diagram

Guides ๐Ÿ—บ

Patterns ๐Ÿ‘ทโ€

Support ๐Ÿ‘ฉโ€โš•๏ธ

Read this in other languages ๐ŸŒŽ

Author โœ๏ธ

Alex Reardon @alexandereardon

Collaborators ๐Ÿค

Current Tags

  • 12.2.0-alpha.1                                ...           alpha (5 years ago)
  • 13.0.0-beta.1                                ...           beta (5 years ago)
  • 13.1.1                                ...           latest (2 years ago)

94 Versions

  • 13.1.1                                ...           2 years ago
  • 13.1.0                                ...           4 years ago
  • 13.0.0                                ...           5 years ago
  • 13.0.0-beta.1                                ...           5 years ago
  • 12.2.0                                ...           5 years ago
  • 12.2.0-alpha.1                                ...           5 years ago
  • 12.1.1                                ...           5 years ago
  • 12.1.0                                ...           5 years ago
  • 12.1.0-alpha.0                                ...           5 years ago
  • 12.0.0                                ...           5 years ago
  • 12.0.0-beta.13                                ...           5 years ago
  • 12.0.0-beta.12                                ...           5 years ago
  • 12.0.0-beta.11                                ...           5 years ago
  • 12.0.0-beta.10                                ...           5 years ago
  • 12.0.0-beta.9                                ...           5 years ago
  • 12.0.0-beta.8                                ...           5 years ago
  • 12.0.0-beta.7                                ...           5 years ago
  • 12.0.0-beta.6                                ...           5 years ago
  • 12.0.0-beta.5                                ...           5 years ago
  • 12.0.0-beta.4                                ...           5 years ago
  • 12.0.0-beta.3                                ...           5 years ago
  • 12.0.0-beta.2                                ...           5 years ago
  • 12.0.0-beta.1                                ...           5 years ago
  • 11.0.5                                ...           5 years ago
  • 12.0.0-alpha.7                                ...           5 years ago
  • 12.0.0-alpha.6                                ...           5 years ago
  • 12.0.0-alpha.4                                ...           5 years ago
  • 12.0.0-alpha.3                                ...           5 years ago
  • 12.0.0-alpha.2                                ...           5 years ago
  • 11.0.4                                ...           5 years ago
  • 12.0.0-alpha.1                                ...           5 years ago
  • 11.0.3                                ...           6 years ago
  • 11.0.2                                ...           6 years ago
  • 11.0.1                                ...           6 years ago
  • 11.0.0                                ...           6 years ago
  • 11.0.0-beta.3                                ...           6 years ago
  • 11.0.0-beta.2                                ...           6 years ago
  • 11.0.0-beta                                ...           6 years ago
  • 10.1.1                                ...           6 years ago
  • 10.1.0                                ...           6 years ago
  • 10.0.4                                ...           6 years ago
  • 10.0.3                                ...           6 years ago
  • 10.0.2                                ...           6 years ago
  • 10.0.1                                ...           6 years ago
  • 10.0.0                                ...           6 years ago
  • 9.0.2                                ...           6 years ago
  • 9.0.1                                ...           6 years ago
  • 9.0.0                                ...           6 years ago
  • 8.0.7                                ...           6 years ago
  • 8.0.6                                ...           6 years ago
  • 8.0.5                                ...           6 years ago
  • 8.0.4                                ...           6 years ago
  • 8.0.3                                ...           6 years ago
  • 8.0.2                                ...           6 years ago
  • 8.0.1                                ...           6 years ago
  • 8.0.0                                ...           6 years ago
  • 7.1.3                                ...           6 years ago
  • 7.1.2                                ...           7 years ago
  • 7.1.1                                ...           7 years ago
  • 7.1.0                                ...           7 years ago
  • 7.0.2                                ...           7 years ago
  • 7.0.1                                ...           7 years ago
  • 7.0.0                                ...           7 years ago
  • 6.0.2                                ...           7 years ago
  • 6.0.1                                ...           7 years ago
  • 6.0.0                                ...           7 years ago
  • 5.0.0                                ...           7 years ago
  • 4.0.1                                ...           7 years ago
  • 4.0.0                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.6.4                                ...           7 years ago
  • 2.6.3                                ...           7 years ago
  • 2.6.2                                ...           7 years ago
  • 2.6.1                                ...           7 years ago
  • 2.6.0                                ...           7 years ago
  • 2.5.0                                ...           7 years ago
  • 2.4.1                                ...           7 years ago
  • 2.4.0                                ...           7 years ago
  • 2.3.1                                ...           7 years ago
  • 2.3.0                                ...           7 years ago
  • 2.2.4                                ...           7 years ago
  • 2.2.3                                ...           7 years ago
  • 2.2.2                                ...           7 years ago
  • 2.2.1                                ...           7 years ago
  • 2.2.0                                ...           7 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (74)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE