DragState
layout
── Drag State Manager ──
Terminal
$termuijs render drag-state
Installation
$ bunx termuijs add drag-state
Copies the source into src/components/drag-state/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { DragState } from '@termuijs/widgets'ts
new DragState(opts: DraggableOptions)API Reference
DragState
| Prop | Type | Required | Description |
|---|---|---|---|
id | string | required | — |
onDragStart | () => void | optional | — |