gradio/js/slider/Slider.stories.svelte
aliabid94 e4a307ed6c
Add component <-> server direct communication support, as well as a "file explorer" component (#5672)
* 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>
2023-10-05 14:20:01 +01:00

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
}}
/>