my_gradio / js /number /Number.stories.svelte
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified
raw
history blame contribute delete
549 Bytes
<script>
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
import Number from "./Index.svelte";
</script>
<Meta title="Components/Number" component={Number} />
<Template let:args>
<Number {...args} />
</Template>
<Story
name="Number with min 0 and max 100"
args={{
minimum: 0,
maximum: 100
}}
/>
<Story
name="Number with step of 10"
args={{
step: 10
}}
/>
<Story
name="Number in disabled state"
args={{
interactive: false
}}
/>
<Story
name="Number with hidden label"
args={{
show_label: false
}}
/>