Reactablejs
A react high-order component for interact.js(drag and drop, resizing and multi-touch gestures).
Install / Use
/learn @beizhedenglong/ReactablejsREADME
Reactablejs = Reactjs + Interactjs
A react high-order component for interactjs.
Current supported features:
- drag
- resize
- drop
- multi-touch
- restrict
- snap
- modifiers
Current supported props:
- options:
draggableresizablegesturabledropzone. - event handlers:
onDragStartonDragMoveonDragInertiaStartonDragEndonResizeStartonResizeMoveonResizeInertiaStartonResizeEndonGestureStartonGestureMoveonGestureEndonDropActivateonDropdEactivateonDragEnteronDragLeaveonDropMoveonDroponDownonMoveonUponCancelonTaponDoubleTaponHold.
api details, visit interactjs' docs
Installation
reactablejsuseinteractjsaspeerDependencies, you should also install interactjs.
npm install reactablejs interactjs --save
Usage
import React from 'react'
import reactable from 'reactablejs'
const MyComponent = (props) => {
return <div ref={props.getRef}>
hello, world!
</div>
}
// MyComponent will receive getRef in props, put getRef to the element you want interact, then you can use all options and event handlers on Reactable
const Reactable = reactable(MyComponent)
Example
- visit storybooks
Related Skills
bluebubbles
335.8kUse when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration). Calls go through the generic message tool with channel="bluebubbles".
node-connect
335.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
slack
335.8kUse when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
frontend-design
82.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
