24
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

react-コンポーネント > drag-and-drop

Last updated at Posted at 2018-08-03

2018.8.3 現在情報

コンポーネント

以下のまとめページに書いてあるドラッグ&ドロップ コンポーネントを調べました。
https://github.com/brillout/awesome-react-components#drag-and-drop

大きく分けて、要素の移動、ファイルドロップ、ソートの3種類のようです。
ソートと合わせてやりたい調べたほうがよさそうです。

項目

React draggable component

mzabriskie/react-draggable: React draggable component

要素のドラッグ&ドロップが可能になります。
ドラッグの細かい制御もできるようです。
これはモバイルでも動作する模様です。

demo - React Draggable

Touch Backend for react-dnd

react-dnd-touch-backend

Yahoo製
react-dnd の拡張
react-dnd はモバイルで動作しないので、そのための拡張の模様

モバイルでも要素のドラッグ&ドロップやソートができます。

demo - React DnD

 

参考:react-dnd…Reactjsのドラッグ並び替え処理 - Qiita

react-dropzone

react-dropzone

ファイルのドロップをサポートするライブラリ

demo - react-dropzone

image

react-dnd

react-dnd - Drag and Drop for React.

上記Touch Backend for react-dndで紹介したもの

react-sortable-pane

react-sortable-pane - Sortable and resizable pane component for React.

いろんなソートができます。
モバイルでは動作しないような

demo - Storybook

image

react-draggable

mzabriskie/react-draggable: React draggable component

image

react-dragula

react-dragula
2015年8月で更新止まっています。

ソートができるdragulaのReactラッパー
モバイルでも動くようなので、モバイル対応。
Sortableと比較した方がいいような気もします。

demo - react-dragula

image

react-droparea

react-droparea

react-dropzoneからインスパイアされたとのこと。
3年くらい更新止まってます。

24
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?