gradio/js/paramviewer/Example.svelte
pngwn 3a944ed9f1
add autodocs (#7030)
* add autodocs

* remove unused code

* add changeset

* fix all of the things

* fix all of the things

* add changeset

* fix things

* tewak

* fix dep

* add ruff as dep with min version

* make output pretty + fix bugs

* tweaks

* fixes

* fix types maybe

* fix arg refs

* fix test

* fix md

* add error for version

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 20:47:01 +00:00

20 lines
342 B
Svelte

<script lang="ts">
export let value: string;
export let type: "gallery" | "table";
export let selected = false;
</script>
<div
class:table={type === "table"}
class:gallery={type === "gallery"}
class:selected
>
<pre>{JSON.stringify(value, null, 2)}</pre>
</div>
<style>
.gallery {
padding: var(--size-1) var(--size-2);
}
</style>