Spaces:
Runtime error
Runtime error
Download frontend/src/lib/Buttons/DragButton.svelte from huggingface-projects/stable-diffusion-multiplayer: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/huggingface-projects/stable-diffusion-multiplayer/resolve/e684f66e4e0efdaa4ea5e430c82fb4dcd7de3e0b/frontend/src/lib/Buttons/DragButton.svelte
- Command line
-
hf download hf://spaces/huggingface-projects/stable-diffusion-multiplayer@e684f66e4e0efdaa4ea5e430c82fb4dcd7de3e0b/frontend/src/lib/Buttons/DragButton.svelte
-
curl -L -o DragButton.svelte https://huggingface.co/spaces/huggingface-projects/stable-diffusion-multiplayer/resolve/e684f66e4e0efdaa4ea5e430c82fb4dcd7de3e0b/frontend/src/lib/Buttons/DragButton.svelte
390 Bytes
| <script lang="ts"> | |
| import Move from '$lib/Icons/Move.svelte'; | |
| export let isActive = false; | |
| export let isLoading = false; | |
| export let className = ''; | |
| </script> | |
| <button | |
| on:click | |
| disabled={isLoading} | |
| class="{className} shadow-lg bg-white rounded-full {isActive ? 'text-blue-700' : 'text-gray-800'}" | |
| title="Enable Dragging" | |
| > | |
| <Move /> | |
| </button> | |
| <style lang="postcss" scoped> | |
| </style> | |