Skip to content

Commit a145b91

Browse files
author
terrakuh
committed
Add class prop
1 parent 6fe2b35 commit a145b91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/components/SortableList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@
596596
<!-- svelte-ignore a11y-role-supports-aria-props -->
597597
<ul
598598
bind:this={rootRef}
599-
class="ssl-list"
599+
class="ssl-list {$$props.class ?? ''}"
600600
style:--ssl-gap="{gap}px"
601601
style:--ssl-wrap={hasWrapping ? 'wrap' : 'nowrap'}
602602
style:--ssl-transition-duration="{transitionDuration}ms"

src/lib/components/SortableListItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Serves as an individual item within `<SortableList.Root>`. Holds the data and co
245245
<li
246246
bind:this={itemRef}
247247
{id}
248-
class="ssl-item"
248+
class="ssl-item {$$props.class ?? ''}"
249249
style:cursor={styleCursor}
250250
style:width={styleWidth}
251251
style:height={styleHeight}

0 commit comments

Comments
 (0)