Skip to content

Commit

Permalink
docs: update installation instructions and add drag drop attributes i…
Browse files Browse the repository at this point in the history
…nterface
  • Loading branch information
Spikeysanju committed Nov 12, 2024
1 parent e8dab8b commit bbef6fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A lightweight drag and drop library for Svelte 5 applications. Built with TypeSc
## Installation

```bash
npm i @thisux/sveltednd@latest
npm i @thisux/sveltednd@latest
# or bun add @thisux/sveltednd or yarn add @thisux/sveltednd or pnpm add @thisux/sveltednd
```

Expand Down Expand Up @@ -133,6 +133,12 @@ interface DragDropState<T = unknown> {
draggedItem: T; // Item being dragged
sourceContainer: string; // Origin container ID
targetContainer: string | null; // Current target container ID
attributes?: DragDropAttributes; // Drag attributes
}
interface DragDropAttributes {
draggingClass?: string; // Custom class for dragging state
dragOverClass?: string; // Custom class for drag-over state
}
```

Expand Down

0 comments on commit bbef6fd

Please sign in to comment.