Spaces:
Running
Running
Download src/lib/components/Empty.svelte from hivetrace/GuardRateLeaderboard: direct link, hf CLI and curl.
- Browser
- Download file 659 Bytes
-
https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/components/Empty.svelte
- Command line
-
hf download hf://spaces/hivetrace/GuardRateLeaderboard/src/lib/components/Empty.svelte
-
curl -L -o Empty.svelte https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/components/Empty.svelte
659 Bytes
| <script lang="ts"> | |
| import * as Empty from '$lib/components/ui/empty/index.js'; | |
| import type { Snippet } from 'svelte'; | |
| type Props = { | |
| icon?: Snippet; | |
| title: string; | |
| description?: string; | |
| content?: Snippet; | |
| }; | |
| let { icon, title, description, content }: Props = $props(); | |
| </script> | |
| <Empty.Root> | |
| <Empty.Header> | |
| {#if icon} | |
| <Empty.Media variant="icon"> | |
| {@render icon()} | |
| </Empty.Media> | |
| {/if} | |
| <Empty.Title>{title}</Empty.Title> | |
| {#if description} | |
| <Empty.Description> | |
| {description} | |
| </Empty.Description> | |
| {/if} | |
| </Empty.Header> | |
| {#if content} | |
| <Empty.Content> | |
| {@render content()} | |
| </Empty.Content> | |
| {/if} | |
| </Empty.Root> | |