Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit c7198ca

Browse files
committed
docs(Playground): add ability to to define additional options for Slider
1 parent ba3a2cd commit c7198ca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/docs/src/components/doc/Playground.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,15 @@
9393
<span class="text--secondary">{label}</span>
9494
</Switch>
9595
{:else if controls[label].type === 'slider'}
96-
<Slider bind:value={values[label]}>{label}</Slider>
96+
<Slider
97+
bind:value={values[label]}
98+
min={controls[label].min || 0}
99+
max={controls[label].max || 100}
100+
step={controls[label].step || null}
101+
thumb={controls[label].thumb || false}
102+
persistentThumb={controls[label].persistentThumb || false}>
103+
{label}
104+
</Slider>
97105
{:else if controls[label].type === 'select'}
98106
<Select
99107
class="mt-4"

0 commit comments

Comments
 (0)