Skip to content

Commit bbef6fd

Browse files
committed
docs: update installation instructions and add drag drop attributes interface
1 parent e8dab8b commit bbef6fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A lightweight drag and drop library for Svelte 5 applications. Built with TypeSc
55
## Installation
66

77
```bash
8-
npm i @thisux/sveltednd@latest
8+
npm i @thisux/sveltednd@latest
99
# or bun add @thisux/sveltednd or yarn add @thisux/sveltednd or pnpm add @thisux/sveltednd
1010
```
1111

@@ -133,6 +133,12 @@ interface DragDropState<T = unknown> {
133133
draggedItem: T; // Item being dragged
134134
sourceContainer: string; // Origin container ID
135135
targetContainer: string | null; // Current target container ID
136+
attributes?: DragDropAttributes; // Drag attributes
137+
}
138+
139+
interface DragDropAttributes {
140+
draggingClass?: string; // Custom class for dragging state
141+
dragOverClass?: string; // Custom class for drag-over state
136142
}
137143
```
138144

0 commit comments

Comments
 (0)