Download tools/server/webui/src/lib/components/ui/textarea/textarea.svelte from OpenTransformer/llama.cpp-prismml: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/components/ui/textarea/textarea.svelte
- Command line
-
hf download hf://OpenTransformer/llama.cpp-prismml/tools/server/webui/src/lib/components/ui/textarea/textarea.svelte
-
curl -L -o textarea.svelte https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/components/ui/textarea/textarea.svelte
923 Bytes
| <script lang="ts"> | |
| import { cn, type WithElementRef, type WithoutChildren } from '$lib/components/ui/utils'; | |
| import type { HTMLTextareaAttributes } from 'svelte/elements'; | |
| let { | |
| ref = $bindable(null), | |
| value = $bindable(), | |
| class: className, | |
| ...restProps | |
| } | |
| </script> | |
| <textarea | |
| bind:this={ref} | |
| data-slot="textarea" | |
| class={cn( | |
| 'flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40', | |
| className | |
| )} | |
| bind:value | |
| {...restProps} | |
| ></textarea> | |