Core features and capabilities of solid-dnd
mainThe library provides several primitives and features for building complex drag and drop interfaces:
- Draggables: Use
createDraggableto integrate drag behavior into elements while maintaining full control over their appearance. - Droppables: Use
createDroppableto manage drop zones. These can be conditionally enabled or disabled based on the current context. - DragOverlay: Use this component when you want to drag a visual representation of an element that is removed from the normal document flow.
- Sensors: Supports different sensors for detecting drag interactions (a pointer sensor is provided by default).
- Collision Detection: Includes built-in layout collision algorithms:
mostIntersecting,closestCorners, andclosestCenter. You can also implement custom algorithms. - Sortable Lists: Provides primitives for reordering lists (currently supports vertical sorting).
- Isolation: You can use multiple or nested
DragDropProviderinstances to create isolated drag and drop containers.