frontend / 6.26.0 /checkbox /Example.svelte
gradio-pr-bot's picture
Upload folder using huggingface_hub
29cbdfd verified
Raw History Blame Contribute Delete
389 Bytes
<script lang="ts">
let {
value,
type,
selected = false
}: {
value: boolean | null;
type: "gallery" | "table";
selected?: boolean;
} = $props();
</script>
<div
class:table={type === "table"}
class:gallery={type === "gallery"}
class:selected
>
{value !== null ? value.toLocaleString() : ""}
</div>
<style>
.gallery {
padding: var(--size-1) var(--size-2);
}
</style>