llama.cpp-prismml / tools /server /webui /src /lib /components /app /actions /ActionIconRemove.svelte
Download tools/server/webui/src/lib/components/app/actions/ActionIconRemove.svelte from OpenTransformer/llama.cpp-prismml: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/components/app/actions/ActionIconRemove.svelte
- Command line
-
hf download hf://OpenTransformer/llama.cpp-prismml/tools/server/webui/src/lib/components/app/actions/ActionIconRemove.svelte
-
curl -L -o ActionIconRemove.svelte https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/tools/server/webui/src/lib/components/app/actions/ActionIconRemove.svelte
526 Bytes
| <script lang="ts"> | |
| import { X } from '@lucide/svelte'; | |
| import { Button } from '$lib/components/ui/button'; | |
| interface Props { | |
| id: string; | |
| onRemove?: (id: string) => void; | |
| class?: string; | |
| } | |
| let { id, onRemove, class: className = '' }: Props = $props(); | |
| </script> | |
| <Button | |
| type="button" | |
| variant="ghost" | |
| size="sm" | |
| class="h-6 w-6 bg-white/20 p-0 hover:bg-white/30 {className}" | |
| onclick={(e: MouseEvent) => { | |
| e.stopPropagation(); | |
| onRemove?.(id); | |
| }} | |
| aria-label="Remove file" | |
| > | |
| <X class="h-3 w-3" /> | |
| </Button> | |