mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
3a944ed9f1
* 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>
20 lines
342 B
Svelte
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>
|