199

GitHub - atlassian/react-beautiful-dnd: Beautiful, accessible drag and drop for...

 6 years ago
source link: https://github.com/atlassian/react-beautiful-dnd
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

atlassian/react-beautiful-dnd: Beautiful and accessible drag and drop for lists with React

Files

Permalink

warning Maintenance & support

This library continues to be relied upon heavily by Atlassian products, but we are focused on other priorities right now and have no current plans for further feature development or improvements.

It will continue to be here on GitHub and we will still make critical updates (e.g. security fixes, if any) as required, but will not be actively monitoring or replying to issues and pull requests.

We recommend that you don’t raise issues or pull requests, as they will not be reviewed or actioned until further notice.


react-beautiful-dnd (rbd)

Beautiful and accessible drag and drop for lists with React

Play with this example if you want!

Core characteristics

  • Beautiful and natural movement of items bouquet
  • Accessible: powerful keyboard and screen reader support wheelchair
  • Extremely performant rocket
  • 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 woman_teacher

We have created to help you get started with react-beautiful-dnd as quickly as possible.

Currently supported feature set white_check_mark

  • Vertical lists arrow_up_down
  • Horizontal lists left_right_arrow
  • Movement between lists (▤ left_right_arrow ▤)
  • - unlocking 10,000 items @ 60fps
  • Combining items
  • Mouse mouse, keyboard musical_keyboardwheelchair and touch point_rightiphone (mobile, tablet and so on) support
  • Multi drag support
  • Incredible screen reader support wheelchair - we provide an amazing experience for english screen readers out of the box package. We also provide complete customisation control and internationalisation support for those who need it sparkling_heart
  • 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 fire)
  • 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 />
  • Allows extensions to support for
  • evergreen_tree 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 thinking

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 v

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 book

About wave

Sensors sound

The ways in which somebody can start and control a drag

API weight_lifting️‍

Guides world_map

Patterns 👷‍

Support woman_health_worker

Read this in other languages earth_americas

Creator writing_hand

Alex Reardon @alexandereardon

Alex is no longer personally maintaning this project. The other wonderful maintainers are carrying this project forward.

Maintainers

Collaborators handshake


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK