Skip to content

Commit

Permalink
Add component documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhubbardsf committed May 5, 2022
1 parent d381d41 commit ce8a290
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jhubbardsf/svelte-sortablejs",
"version": "1.0.0",
"version": "1.1.0",
"author": "Josh Hubbard <[email protected]> (https://joshuahubbard.dev/)",
"description": "A Svelte wrapper for the Sortable.js library",
"repository": {
Expand Down
14 changes: 14 additions & 0 deletions src/lib/SortableList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,20 @@
});
</script>

<!--
@component
Svelte wrapper for SortableJS.
- Usage:
```tsx
<SortableList>
<div>List Item 1</div>
<div>List Item 2</div>
<div>List Item 3</div>
</SortableList>
```
-->

<div bind:this={list} class={className}>
<slot />
</div>

0 comments on commit ce8a290

Please sign in to comment.