gradio/js/image/ImageExample.stories.svelte
Abubakar Abid eda33b3763
Refactors get_fetchable_url_or_file() to remove it from the frontend (#7528)
* 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>
2024-02-26 13:01:00 -08:00

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