
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
drag-react
Advanced tools
A simple and lightweight component for making elements draggable.
$ npm install drag-react
# yarn add drag-react
import { Draggable } from 'drag-react';
<Draggable>
<div>My element is draggable now</div>
</Draggable>
name | type | default | description |
---|---|---|---|
children | any | - | Some element |
className? | string | 'drag-react' | Class name for drag wrapper |
style? | Object | { position: 'fixed', left: '10px', top: '10px', zIndex: 99999 , cursor: 'move' } | css style for drag wrapper |
onDragStart? | (_: DOMRect) => void | - | Called whenever the user mouses down |
onDragEnd? | (_: DOMRect) => void | - | Called when dragging stops |
MIT
FAQs
React draggable component
We found that drag-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.