Spaces:
Runtime error
Runtime error
Download frontend/src/lib/components/Checkbox.svelte from JeffLiang/streamv2v: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/JeffLiang/streamv2v/resolve/main/frontend/src/lib/components/Checkbox.svelte
- Command line
-
hf download hf://spaces/JeffLiang/streamv2v/frontend/src/lib/components/Checkbox.svelte
-
curl -L -o Checkbox.svelte https://huggingface.co/spaces/JeffLiang/streamv2v/resolve/main/frontend/src/lib/components/Checkbox.svelte
494 Bytes
| <script lang="ts"> | |
| import type { FieldProps } from '$lib/types'; | |
| import { onMount } from 'svelte'; | |
| export let value = false; | |
| export let params: FieldProps; | |
| onMount(() => { | |
| value = Boolean(params?.default) ?? 8.0; | |
| }); | |
| </script> | |
| <div class="grid max-w-md grid-cols-4 items-center justify-items-start gap-3"> | |
| <label class="text-sm font-medium" for={params.id}>{params?.title}</label> | |
| <input bind:checked={value} type="checkbox" id={params.id} class="cursor-pointer" /> | |
| </div> | |