Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HanielU committed Jan 17, 2025
1 parent 558cb31 commit 96525e2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# svelte-dnd-kit
# dnd-kit-svelte

A Svelte port of the powerful [@dnd-kit][dnd-kit] library - the modern, lightweight, performant, accessible and extensible drag & drop toolkit.

Expand All @@ -7,11 +7,11 @@ A Svelte port of the powerful [@dnd-kit][dnd-kit] library - the modern, lightwei
Install it:

```bash
npm i svelte-dnd-kit
npm i @dnd-kit-svelte/core
# or
yarn add svelte-dnd-kit
yarn add @dnd-kit-svelte/core
# or
pnpm add svelte-dnd-kit
pnpm add @dnd-kit-svelte/core
```

## Overview
Expand All @@ -36,12 +36,16 @@ Example:

```ts
// React dnd-kit
import {useSortable} from '@dnd-kit/sortable';

useSortable({
id: item.id,
data: item,
});

// Svelte dnd-kit
import {useSortable} from '@dnd-kit-svelte/sortable';

useSortable({
// Static value
id: item.id,
Expand Down

0 comments on commit 96525e2

Please sign in to comment.