📄 useDraggable/component¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 13 |
| 🟢 Vue Composition API | 4 |
| 📐 Interfaces | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/useDraggable/component.ts
📦 Imports¶
| Name | Source |
|---|---|
Position |
@vueuse/core |
RenderableComponent |
@vueuse/core |
UseDraggableOptions |
@vueuse/core |
SlotsType |
vue |
isClient |
@vueuse/core |
useDraggable |
@vueuse/core |
useStorage |
@vueuse/core |
computed |
vue |
defineComponent |
vue |
h |
vue |
reactive |
vue |
shallowRef |
vue |
toValue |
vue |
Vue Composition API¶
| Name | Type | Reactive Variables | Composables |
|---|---|---|---|
computed |
computed | none | none |
computed |
computed | none | none |
computed |
computed | none | none |
reactive |
reactive | none | none |
Functions¶
Internal helpers¶
Declared inside another function in this file.
onEnd(position: Position, event: PointerEvent): void¶
Parameters:
positionPositioneventPointerEvent
Returns: void
Calls:
props.onEnd
Code
Interfaces¶
UseDraggableProps¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
storageKey |
string |
✓ | not shown |
storageType |
'local' \| 'session' |
✓ | not shown |
Generated by Syntax Scribe