awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mzabriskie avatar

mzabriskie/react-draggable

0
View on GitHub↗
9,289 星标·1,053 分支·JavaScript·MIT·9 次浏览

React Draggable

react-draggable is a UI interaction library that provides core primitives and components for adding tactile movement and coordinate-based positioning to web elements. It serves as a tool for making user interface elements movable via mouse or touch interactions within React applications.

The library supports the implementation of custom drag handles, allowing the initiation of movement to be restricted to specific child elements identified by CSS selectors. It also provides programmatic drag state management, enabling developers to control element positioning or use callbacks for movement without automatic style management.

The project covers a broad range of interaction capabilities, including drag event tracking through lifecycle callbacks and the enforcement of boundary constraints to restrict movement within defined dimensions. It supports both desktop and mobile devices through touch-enabled element positioning.

Features

  • Drag and Drop Libraries - Provides low-level primitives for managing coordinates and movement of elements on a screen.
  • React Components - Offers reusable draggable components specifically designed for integration within the React ecosystem.
  • Spatial State Tracking - Tracks real-time mouse and touch coordinates to maintain the spatial state of moving elements.
  • Element Positioning - Implements element positioning that works across both desktop and mobile touch interfaces.
  • Drag Handles - Allows restricting the movement of an element to a specific designated child handle.
  • Interactive UI Components - Provides components that can be freely moved across the screen via mouse or touch interactions.
  • Draggable Layout Elements - Provides UI components that can be freely repositioned across the screen via pointer interactions.
  • CSS Transform Animations - Uses inline CSS transform properties to ensure smooth, hardware-accelerated movement of elements.
  • Dynamic Layout Engines - Provides a framework for programmatically controlling element positions and reacting to movement via callbacks.
  • Drag Boundary Constraints - Implements boundaries to restrict the movement of draggable elements within defined coordinate areas.
  • Drag Event Callbacks - Ships configuration hooks that execute custom functions during the start, progression, and completion of drags.
  • Drag State Monitors - Offers tools to monitor drag progress and control element coordinates programmatically.
  • Drag and Drop - Draggable element component.

Star 历史

mzabriskie/react-draggable 的 Star 历史图表mzabriskie/react-draggable 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

React Draggable 的开源替代方案

相似的开源项目,按与 React Draggable 的功能重合度排序。
  • react-grid-layout/react-draggablereact-grid-layout 的头像

    react-grid-layout/react-draggable

    9,292在 GitHub 上查看↗

    react-draggable is a drag and drop library and coordinate-based position manager for React. It functions as a component wrapper that adds draggable behavior to user interface elements, enabling them to be moved via mouse or touch interactions. The library provides touch-enabled interaction tools that unify pointer events across desktop browsers and touch screen devices. It utilizes CSS transforms to handle element movement and coordinate tracking. The system covers movement constraints such as axis restriction and boundary clamping to confine elements within specific areas. It includes posit

    JavaScript
    在 GitHub 上查看↗9,292
  • desandro/draggabillydesandro 的头像

    desandro/draggabilly

    3,871在 GitHub 上查看↗

    Draggabilly is a JavaScript drag and drop library used to make DOM elements draggable on desktop and mobile. It serves as a coordinate-based UI tool and interaction library for tracking and setting the horizontal and vertical positions of interface elements during user interaction. The library provides a mobile-ready touch handler that converts mouse and touch movements into element translation. It includes specialized capabilities for restricting movement to specific axes or container boundaries and implements grid snapping to align elements to a predefined pixel grid. The tool manages the

    JavaScript
    在 GitHub 上查看↗3,871
  • gaearon/react-dndgaearon 的头像

    gaearon/react-dnd

    21,642在 GitHub 上查看↗

    React-dnd is a drag and drop framework and library for React applications. It provides a system of higher-order components and hooks to implement draggable interface elements and drop targets using a declarative API. The framework separates the logic of moving items from the visual presentation of the user interface. This allows for the development of interactive interfaces, such as visual list reordering and custom dashboard layouts where widgets or panels can be reorganized.

    TypeScript
    在 GitHub 上查看↗21,642
  • juliangarnier/animejuliangarnier 的头像

    juliangarnier/anime

    69,932在 GitHub 上查看↗

    This project is a declarative motion framework and JavaScript animation engine designed to transition CSS properties, SVG attributes, and DOM elements. It provides a comprehensive set of tools for creating complex, multi-part motion sequences by synchronizing animations, timers, and callbacks into a single, unified timeline. The library distinguishes itself through a robust timeline-based sequence orchestrator that allows for precise timing, label-based control, and hierarchical nesting of animations. It also features a physics-driven interaction library that enables draggable elements with c

    JavaScriptanimationanimecanvas
    在 GitHub 上查看↗69,932
查看 React Draggable 的所有 30 个替代方案→

常见问题解答

mzabriskie/react-draggable 是做什么的?

react-draggable is a UI interaction library that provides core primitives and components for adding tactile movement and coordinate-based positioning to web elements. It serves as a tool for making user interface elements movable via mouse or touch interactions within React applications.

mzabriskie/react-draggable 的主要功能有哪些?

mzabriskie/react-draggable 的主要功能包括:Drag and Drop Libraries, React Components, Spatial State Tracking, Element Positioning, Drag Handles, Interactive UI Components, Draggable Layout Elements, CSS Transform Animations。

mzabriskie/react-draggable 有哪些开源替代品?

mzabriskie/react-draggable 的开源替代品包括: react-grid-layout/react-draggable — react-draggable is a drag and drop library and coordinate-based position manager for React. It functions as a… desandro/draggabilly — Draggabilly is a JavaScript drag and drop library used to make DOM elements draggable on desktop and mobile. It serves… gaearon/react-dnd — React-dnd is a drag and drop framework and library for React applications. It provides a system of higher-order… juliangarnier/anime — This project is a declarative motion framework and JavaScript animation engine designed to transition CSS properties,… sortablejs/sortable — Sortable is a framework-agnostic JavaScript library for creating reorderable lists through drag and drop interactions.… haltu/muuri — Muuri is a JavaScript grid layout library and draggable UI framework used to create responsive grids with…