We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 972c22f commit 8ecbd3cCopy full SHA for 8ecbd3c
src/lib/VirtualList.svelte
@@ -71,6 +71,10 @@
71
onVisibleRangeUpdate,
72
onAfterScroll,
73
74
+ // dom
75
+ zclass = '',
76
+ zstyle = '',
77
+
78
...props
79
}: {
80
height: number | string;
@@ -94,6 +98,8 @@
94
98
// events
95
99
onVisibleRangeUpdate?: (range: VirtualRangeEvent) => void;
96
100
onAfterScroll?: (event: AfterScrollEvent) => void;
101
+ zclass?: string;
102
+ zstyle?: string;
97
103
} = $props();
104
105
const SCROLL_PROP = {
@@ -381,7 +387,7 @@
381
387
}
382
388
</script>
383
389
384
-<div bind:this={container} class="virtual-list-wrapper" style={wrapperStyle} {...props}>
390
+<div bind:this={container} class="virtual-list-wrapper ${zclass}" style={wrapperStyle} {...props}>
385
391
{#if header}
386
392
{@render header()}
393
{/if}
0 commit comments