Download src/lib/components/ui/select/select-scroll-up-button.svelte from hivetrace/GuardRateLeaderboard: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/components/ui/select/select-scroll-up-button.svelte
- Command line
-
hf download hf://spaces/hivetrace/GuardRateLeaderboard/src/lib/components/ui/select/select-scroll-up-button.svelte
-
curl -L -o select-scroll-up-button.svelte https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/components/ui/select/select-scroll-up-button.svelte
652 Bytes
| <script lang="ts"> | |
| import { Select as SelectPrimitive } from "bits-ui"; | |
| import { cn, type WithoutChildrenOrChild } from "$lib/utils.js"; | |
| import ChevronUpIcon from '@lucide/svelte/icons/chevron-up'; | |
| let { | |
| ref = $bindable(null), | |
| class: className, | |
| ...restProps | |
| } | |
| </script> | |
| <SelectPrimitive.ScrollUpButton | |
| bind:ref | |
| data-slot="select-scroll-up-button" | |
| class={cn("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full", className)} | |
| {...restProps} | |
| > | |
| <ChevronUpIcon /> | |
| </SelectPrimitive.ScrollUpButton> | |