mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
e4a307ed6c
* changes * changes * add changeset * add changeset * Server fns ext (#5760) * start changes * changes * changes * fix arrows * add changeset * rename demo * fix some ci * add changeset * add changeset * fix * remove configs * fix * fix * add changeset * fixes * linting * Update gradio/components/file_explorer.py * notebook * typing * tweaks * fixed class method problem * fix test * file explorer * gr.load * format * tweaks * fix * fix * fix * fix * final tweaks + changelog * changelog * changelog * changelog * lint --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: pngwn <hello@pngwn.io> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
42 lines
598 B
Svelte
42 lines
598 B
Svelte
<script>
|
|
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
|
|
import Slider from "./interactive";
|
|
</script>
|
|
|
|
<Meta title="Components/Slider" component={Slider} />
|
|
|
|
<Template let:args>
|
|
<Slider {...args} />
|
|
</Template>
|
|
|
|
<Story
|
|
name="Slider with min 0 and max 100"
|
|
args={{
|
|
minimum: 0,
|
|
maximum: 100
|
|
}}
|
|
/>
|
|
|
|
<Story
|
|
name="Slider with step of 10"
|
|
args={{
|
|
step: 10
|
|
}}
|
|
/>
|
|
|
|
<Story
|
|
name="Slider with hidden label"
|
|
args={{
|
|
show_label: false
|
|
}}
|
|
/>
|
|
|
|
<Story
|
|
name="Slider with min 0 and max 100 and default value of 50"
|
|
args={{
|
|
value: 50,
|
|
minimum: 0,
|
|
maximum: 100
|
|
}}
|
|
/>
|