Socket
Socket
Sign inDemoInstall

@react-forked/dnd

Package Overview
Dependencies
7
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @react-forked/dnd

Beautiful and accessible drag and drop for lists with React


Version published
Weekly downloads
4.6K
increased by2.43%
Maintainers
1
Install size
3.49 MB
Created
Weekly downloads
 

Changelog

Source

15.0.0 (2022-08-22)

Docs 📃

  • readme: fix storybook link (#346) (a892bba)

Bug Fixes 🛠

  • make sure the droppable exsist in the registry before notify a removal (#392) (8648c80)
  • react: prevent automatic batching for some state changes (#392) (cf5e3bd)

Tests 🧪

  • adjust test to work for react 16, 17 and 18 (#392) (5b3f3a6)
  • dev-deps: migrate from enzyme to @testing-library/react (#323) (8676466)

Features 🔥

  • browserslist: drop ie support and tweak a bit the config (#404) (d520b66)
  • peer-deps: add react 18 (#321) (0439bd4), closes #319
  • registry: drop ansyc registry clean for react 18+ (#392) (3ca8100)

Others 🔧

  • commitizen: drop hook on commit in favor of a command (#400) (9f951df)
  • config: convert some to json, fix broken syntax and run prettier (#405) (25fb114)
  • deps: bump multiple deps and dev-deps (#392) (adaeefb)
  • deps: support react-redux@8 (#392) (60d9e51)
  • deps: update browser-tools orb to v1.4.0 (#359) (03a99da)
  • deps: update wagoid/commitlint-github-action action to v5 (#386) (97c7912)
  • dev-deps: bump all babel related packages (#395) (7bf5ea0)
  • dev-deps: bump all eslint related packages (#395) (8e3b791)
  • dev-deps: bump commit and release packages (#395) (8a21996)
  • dev-deps: bump cypress and fix specs (#392) (5fffa27)
  • dev-deps: bump node to 16.17.0 (#395) (f97a37c)
  • dev-deps: bump prettier (#395) (d42bcab)
  • dev-deps: bump rollup related packages (#395) (5a5ccd6)
  • dev-deps: bump styling related packages (#395) (02e5d04)
  • dev-deps: bump support packages (#395) (46c3828)
  • dev-deps: pin dependencies (#396) (d040c9c)
  • dev-deps: update dependency @types/node to v16.11.52 (#332) (c63bfeb)
  • dev-deps: update dependency eslint-plugin-jest to v26.8.7 (#349) (97b430d)
  • npm: list package as public (#402) (a2a856c)
  • npm: make sure to publicly publish to npm (#401) (da98909)
  • release 15.0.0-beta.0 (813953d)
  • release: improve release script (#403) (6311614)
  • renovate: prevent pr to upgrade packages for old react versions (#399) (642d2af)
  • storybook: disable telemetry (#392) (0193604)
  • storybook: enable strict mode (#392) (ff3017a)
  • test: fix issue when running test with react major version env set (#392) (bd0cce2)
  • test: setup jest test to run against the last three major version of react (#392) (0fdbc22)
  • type: fix react-virtualized type (library does not support react 18) (#392) (2e186c3)
  • update sizes snapshot (#392) (180f7f6)

Readme

Source

react beautiful dnd logo

@react-forked/dnd (rfd)

Beautiful and accessible drag and drop for lists with React

CircleCI branch npm Conventional Commits Commitizen friendly

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 👩‍🏫

Alex Reardon has created a free course on egghead.io 🥚 (using react-beautiful-dnd) to help you get started with @react-forked/dnd as quickly as possible.

course-logo

Currently supported feature set ✅

  • Vertical lists ↕
  • Horizontal lists ↔
  • Movement between lists (▤ ↔ ▤)
  • Virtual list support 👾 - unlocking 10,000 items @ 60fps
  • 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 />
  • Create scripted drag and drop experiences 🎮
  • Allows extensions to support for any input type you like 🕹
  • 🌲 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-forked/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-forked/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-forked/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-forked/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 🌎

⚠️ These following translations are based on react-beautiful-dnd.

Creator ✍️

Alex Reardon @alexandereardon

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

Maintainer 🛠️

Collaborators 🤝

Keywords

FAQs

Last updated on 22 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc