Skip to content

Commit d89c953

Browse files
committed
allow to set class of knob div
1 parent 6fe09e9 commit d89c953

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Knob.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="knob-control" style="{style}" bind:this={knob}>
1+
<div class:knob-control={true} class={_class} style={style} bind:this={knob}>
22
<svg width="{computedSize}" height="{computedSize}" viewBox="0 0 100 100"
33
on:click="{onClick}"
44
on:mousedown="{onMouseDown}"
@@ -74,6 +74,8 @@ export let textColor = '#000000';
7474
export let strokeWidth = 17;
7575
export let valueDisplayFunction = (v) => v;
7676
77+
$: _class = $$restProps['class'];
78+
7779
onMount(async () => {
7880
dashLength()
7981
clearInterval(interval);

0 commit comments

Comments
 (0)