mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
25 lines
376 B
Svelte
25 lines
376 B
Svelte
|
<script>
|
||
|
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
|
||
|
import Textbox from "./Example.svelte";
|
||
|
</script>
|
||
|
|
||
|
<Meta title="Components/Textbox/Example" component={Textbox} />
|
||
|
|
||
|
<Template let:args>
|
||
|
<Textbox {...args} />
|
||
|
</Template>
|
||
|
|
||
|
<Story
|
||
|
name="Text value"
|
||
|
args={{
|
||
|
value: "the quick brown fox"
|
||
|
}}
|
||
|
/>
|
||
|
|
||
|
<Story
|
||
|
name="Null"
|
||
|
args={{
|
||
|
value: null
|
||
|
}}
|
||
|
/>
|