Skip to content

Commit ce8a290

Browse files
committed
Add component documentation.
1 parent d381d41 commit ce8a290

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jhubbardsf/svelte-sortablejs",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"author": "Josh Hubbard <josh@joshuahubbard.dev> (https://joshuahubbard.dev/)",
55
"description": "A Svelte wrapper for the Sortable.js library",
66
"repository": {

src/lib/SortableList.svelte

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,20 @@
264264
});
265265
</script>
266266

267+
<!--
268+
@component
269+
Svelte wrapper for SortableJS.
270+
271+
- Usage:
272+
```tsx
273+
<SortableList>
274+
<div>List Item 1</div>
275+
<div>List Item 2</div>
276+
<div>List Item 3</div>
277+
</SortableList>
278+
```
279+
-->
280+
267281
<div bind:this={list} class={className}>
268282
<slot />
269283
</div>

0 commit comments

Comments
 (0)