Skip to content

Commit e72f39f

Browse files
LFDanLudevongovettdannify
authored
Updating ListView dnd docs for new api (#3579)
* updating ListView dnd docs for new api * fixing weird spacing * removing extraneous comment * addressing review comments * address review comments * Use monopackage imports, and add rc badge Co-authored-by: Devon Govett <[email protected]> Co-authored-by: Danni <[email protected]>
1 parent 884762b commit e72f39f

File tree

4 files changed

+490
-405
lines changed

4 files changed

+490
-405
lines changed

packages/@react-spectrum/dnd/docs/dnd.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ Below is what our draggable ListView would look like after combining everything
157157
[React Aria docs](../react-aria/useDraggableCollection.html#drag-data).
158158

159159
```tsx example export=true render=false
160-
import {Item, ListView} from '@react-spectrum/list';
160+
import {Item, ListView, useListData} from '@adobe/react-spectrum';
161161
import {useDragAndDrop} from '@react-spectrum/dnd';
162-
import {useListData} from '@react-stately/data';
163162

164163
function DraggableList() {
165164
let list = useListData({

0 commit comments

Comments
 (0)