Spaces:
Running
Running
Download src/lib/components/ui/command/command-list.svelte from enzostvs/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command-list.svelte
- Command line
-
hf download hf://spaces/enzostvs/inference-playground/src/lib/components/ui/command/command-list.svelte
-
curl -L -o command-list.svelte https://huggingface.co/spaces/enzostvs/inference-playground/resolve/main/src/lib/components/ui/command/command-list.svelte
398 Bytes
| <script lang="ts"> | |
| import { Command as CommandPrimitive } from 'bits-ui'; | |
| import { cn } from '$lib/utils.js'; | |
| let { | |
| ref = $bindable(null), | |
| class: className, | |
| ...restProps | |
| }: CommandPrimitive.ListProps = $props(); | |
| </script> | |
| <CommandPrimitive.List | |
| bind:ref | |
| data-slot="command-list" | |
| class={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)} | |
| {...restProps} | |
| /> | |