You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@react-aria/dnd/docs/useClipboard.mdx
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -432,3 +432,60 @@ function Pasteable() {
432
432
433
433
</details>
434
434
435
+
## Disabling copy and paste
436
+
437
+
If you need to temporarily disable copying and pasting, you can pass the `isDisabled` option to `useClipboard`. This will prevent copying and pasting on the element until it is re-enabled.
Copy file name to clipboardExpand all lines: packages/@react-aria/dnd/docs/useDrag.mdx
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -375,3 +375,32 @@ function Draggable() {
375
375
<Draggable />
376
376
<DropTarget />
377
377
```
378
+
379
+
## Disabling dragging
380
+
381
+
If you need to temporarily disable dragging, you can pass the `isDisabled` option to `useDrag`. This will prevent dragging an element until it is re-enabled.
Copy file name to clipboardExpand all lines: packages/@react-aria/dnd/docs/useDrop.mdx
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -437,3 +437,40 @@ function DropTarget() {
437
437
<Draggable />
438
438
<DropTarget />
439
439
```
440
+
441
+
## Disabling dropping
442
+
443
+
If you need to temporarily disable dropping, you can pass the `isDisabled` option to `useDrop`. This will prevent the drop target from accepting any drops until it is re-enabled.
0 commit comments