Use built-in Draggable plugins
mainThe @shopify/draggable library includes several plugins by default that extend the core dragging functionality. These plugins are available for use to add specific behaviors like announcement for accessibility, focus management, visual mirroring, or scroll handling during drag operations.
Included plugins:
- Announcement: Provides accessibility announcements (e.g., via ARIA live regions) about the drag state.
- Focusable: Manages focus during drag interactions.
- Mirror: Creates a visual mirror/ghost of the element being dragged.
- Scrollable: Handles automatic scrolling when a dragged element is moved near the boundaries of a scrollable container.