Skip to content

Commit 54967fe

Browse files
committed
Add tag prop to readme
1 parent b2dcffc commit 54967fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { Sortable } from 'sortablejs-vue3'
4242
<Sortable
4343
:list="elements"
4444
item-key="id"
45+
tag="div"
4546
:options="options"
4647
>
4748
<template #item="{element, index}">
@@ -55,6 +56,8 @@ import { Sortable } from 'sortablejs-vue3'
5556

5657
4. The `list` and `item-key` props are necessary. The `options` prop is an object that can contain any SortableJS option. You can find a full list of them here: https://github.com/SortableJS/Sortable#options
5758

59+
5. The `tag` prop is an optional prop, it's the HTML node type of the element that creates an outer element for the included slot. the default value is `div`
60+
5861
### Events
5962
You can listen to Sortable events by adding the listeners to the `Sortable` component. For example:
6063

0 commit comments

Comments
 (0)