File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ A lightweight drag and drop library for Svelte 5 applications. Built with TypeSc
5
5
## Installation
6
6
7
7
``` bash
8
- npm i @thisux/sveltednd@latest
8
+ npm i @thisux/sveltednd@latest
9
9
# or bun add @thisux/sveltednd or yarn add @thisux/sveltednd or pnpm add @thisux/sveltednd
10
10
```
11
11
@@ -133,6 +133,12 @@ interface DragDropState<T = unknown> {
133
133
draggedItem: T; // Item being dragged
134
134
sourceContainer: string; // Origin container ID
135
135
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
136
142
}
137
143
` ` `
138
144
You can’t perform that action at this time.
0 commit comments