Spaces:
Running
Running
Download src/lib/components/ui/command/command-shortcut.svelte from enzostvs/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command-shortcut.svelte
- Command line
-
hf download hf://spaces/enzostvs/inference-playground/src/lib/components/ui/command/command-shortcut.svelte
-
curl -L -o command-shortcut.svelte https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command-shortcut.svelte
471 Bytes
| <script lang="ts"> | |
| import { cn, type WithElementRef } from '$lib/utils.js'; | |
| import type { HTMLAttributes } from 'svelte/elements'; | |
| let { | |
| ref = $bindable(null), | |
| class: className, | |
| children, | |
| ...restProps | |
| } | |
| </script> | |
| <span | |
| bind:this={ref} | |
| data-slot="command-shortcut" | |
| class={cn('ms-auto text-xs tracking-widest text-muted-foreground', className)} | |
| {...restProps} | |
| > | |
| {@render children?.()} | |
| </span> | |