mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-09 02:00:44 +08:00
1419538ea7
* asd * changes * fix everything * cleanup * add changeset * fix casing * lockfile * fix casing * fix ci, enable linting * fix test * add changeset * add changeset * delete changeset * fix dirs * fix casing * fix notebooks * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
20 lines
306 B
Svelte
20 lines
306 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
|
|
>
|
|
{value}
|
|
</div>
|
|
|
|
<style>
|
|
.gallery {
|
|
padding: var(--size-1) var(--size-2);
|
|
}
|
|
</style>
|