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