mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
eda33b3763
* fetch * add changeset * add changeset * simplify * add changeset * changes * format * add changeset * changes * format * fixes * lint * fix components * fixes * typing * format frontend * path * fixes * fix stories * lint * lint --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
29 lines
553 B
Svelte
29 lines
553 B
Svelte
<script>
|
|
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
|
|
import Image from "./Example.svelte";
|
|
</script>
|
|
|
|
<Meta title="Components/Image/Example" component={Image} />
|
|
|
|
<Template let:args>
|
|
<Image {...args} />
|
|
</Template>
|
|
|
|
<Story
|
|
name="Image file"
|
|
args={{
|
|
value: {
|
|
path: "https://gradio-builds.s3.amazonaws.com/demo-files/ghepardo-primo-piano.jpg",
|
|
url: "https://gradio-builds.s3.amazonaws.com/demo-files/ghepardo-primo-piano.jpg",
|
|
orig_name: "cheetah.jpg"
|
|
}
|
|
}}
|
|
/>
|
|
|
|
<Story
|
|
name="Null"
|
|
args={{
|
|
value: null
|
|
}}
|
|
/>
|