Spaces:
Runtime error
Runtime error
Download frontend/src/lib/components/Button.svelte from JeffLiang/streamv2v: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/JeffLiang/streamv2v/resolve/main/frontend/src/lib/components/Button.svelte
- Command line
-
hf download hf://spaces/JeffLiang/streamv2v/frontend/src/lib/components/Button.svelte
-
curl -L -o Button.svelte https://huggingface.co/spaces/JeffLiang/streamv2v/resolve/main/frontend/src/lib/components/Button.svelte
457 Bytes
| <script lang="ts"> | |
| export let classList: string = 'p-2'; | |
| export let disabled: boolean = false; | |
| export let title: string = ''; | |
| </script> | |
| <button class="button {classList}" on:click {disabled} {title}> | |
| <slot /> | |
| </button> | |
| <style lang="postcss" scoped> | |
| .button { | |
| @apply rounded bg-gray-700 font-normal text-white hover:bg-gray-800 disabled:cursor-not-allowed disabled:bg-gray-300 dark:disabled:bg-gray-700 dark:disabled:text-black; | |
| } | |
| </style> | |