Spaces:
Running
Running
Download src/lib/components/ui/command/command.svelte from enzostvs/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command.svelte
- Command line
-
hf download hf://spaces/enzostvs/inference-playground/src/lib/components/ui/command/command.svelte
-
curl -L -o command.svelte https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command.svelte
601 Bytes
| <script lang="ts"> | |
| import { cn } from '$lib/utils.js'; | |
| import { Command as CommandPrimitive } from 'bits-ui'; | |
| export type CommandRootApi = CommandPrimitive.Root; | |
| let { | |
| api = $bindable(null), | |
| ref = $bindable(null), | |
| value = $bindable(''), | |
| class: className, | |
| ...restProps | |
| }: CommandPrimitive.RootProps & { | |
| api?: CommandRootApi | null; | |
| } = $props(); | |
| </script> | |
| <CommandPrimitive.Root | |
| bind:this={api} | |
| bind:value | |
| bind:ref | |
| data-slot="command" | |
| class={cn( | |
| 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', | |
| className | |
| )} | |
| {...restProps} | |
| /> | |