Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-aria-components/docs/DropZone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ The `Draggable` component used above is defined below. See [useDrag](useDrag.htm
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>

```tsx example render=false export=true
import {useDrag} from '@react-aria/dnd';
import {useDrag} from 'react-aria-components';

function Draggable() {
let {dragProps, isDragging} = useDrag({
Expand Down
2 changes: 2 additions & 0 deletions packages/react-aria-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export {ToggleButtonGroup, ToggleButtonGroupContext, ToggleGroupStateContext} fr
export {Toolbar, ToolbarContext} from './Toolbar';
export {TooltipTrigger, Tooltip, TooltipTriggerStateContext, TooltipContext} from './Tooltip';
export {TreeLoadMoreItem, Tree, TreeItem, TreeContext, TreeItemContent, TreeStateContext} from './Tree';
export {useDrag, useDrop} from '@react-aria/dnd';
export {useDragAndDrop} from './useDragAndDrop';
export {DropIndicator, DropIndicatorContext, DragAndDropContext} from './DragAndDrop';
export {Virtualizer} from './Virtualizer';
Expand Down Expand Up @@ -139,6 +140,7 @@ export type {ToggleButtonGroupProps, ToggleButtonGroupRenderProps} from './Toggl
export type {ToolbarProps, ToolbarRenderProps} from './Toolbar';
export type {TooltipProps, TooltipRenderProps, TooltipTriggerComponentProps} from './Tooltip';
export type {TreeProps, TreeRenderProps, TreeItemProps, TreeItemRenderProps, TreeItemContentProps, TreeItemContentRenderProps, TreeLoadMoreItemProps, TreeLoadMoreItemRenderProps} from './Tree';
export type {DragOptions, DragResult} from '@react-aria/dnd';
export type {DragAndDropHooks, DragAndDropOptions} from './useDragAndDrop';
export type {DropIndicatorProps, DropIndicatorRenderProps} from './DragAndDrop';
export type {ContextValue, RenderProps, SlotProps, StyleRenderProps} from './utils';
Expand Down
4 changes: 2 additions & 2 deletions packages/react-aria-components/stories/Dropzone.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

import {action} from '@storybook/addon-actions';
import {Button, DropZone, FileTrigger, Link, Text} from 'react-aria-components';
import {Button, DropZone, FileTrigger, Link, Text, useDrag} from 'react-aria-components';
import {classNames} from '@react-spectrum/utils';
import {FocusRing, mergeProps, useButton, useClipboard, useDrag} from 'react-aria';
import {FocusRing, mergeProps, useButton, useClipboard} from 'react-aria';
import {Meta, StoryFn, StoryObj} from '@storybook/react';
import React, {useRef} from 'react';
import styles from '../example/index.css';
Expand Down