Download 6.26.0/fallback/Example.svelte from gradio/frontend: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/datasets/gradio/frontend/resolve/main/6.26.0/fallback/Example.svelte
- Command line
-
hf download hf://datasets/gradio/frontend/6.26.0/fallback/Example.svelte
-
curl -L -o Example.svelte https://huggingface.co/datasets/gradio/frontend/resolve/main/6.26.0/fallback/Example.svelte
342 Bytes
| <script lang="ts"> | |
| let { | |
| value, | |
| type, | |
| selected = false | |
| }: { | |
| value: string; | |
| type: "gallery" | "table"; | |
| selected?: boolean; | |
| } = $props(); | |
| </script> | |
| <div | |
| class:table={type === "table"} | |
| class:gallery={type === "gallery"} | |
| class:selected | |
| > | |
| {value} | |
| </div> | |
| <style> | |
| .gallery { | |
| padding: var(--size-1) var(--size-2); | |
| } | |
| </style> | |