Spaces:
Running
Running
Download src/lib/components/ui/command/command-input.svelte from enzostvs/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command-input.svelte
- Command line
-
hf download hf://spaces/enzostvs/inference-playground/src/lib/components/ui/command/command-input.svelte
-
curl -L -o command-input.svelte https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command-input.svelte
756 Bytes
| <script lang="ts"> | |
| import { Command as CommandPrimitive } from 'bits-ui'; | |
| import SearchIcon from '@lucide/svelte/icons/search'; | |
| import { cn } from '$lib/utils.js'; | |
| let { | |
| ref = $bindable(null), | |
| class: className, | |
| value = $bindable(''), | |
| ...restProps | |
| }: CommandPrimitive.InputProps = $props(); | |
| </script> | |
| <div class="flex h-9 items-center gap-2 border-b ps-3 pe-8" data-slot="command-input-wrapper"> | |
| <SearchIcon class="size-4 shrink-0 opacity-50" /> | |
| <CommandPrimitive.Input | |
| data-slot="command-input" | |
| class={cn( | |
| 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', | |
| className | |
| )} | |
| bind:ref | |
| {...restProps} | |
| bind:value | |
| /> | |
| </div> | |