Spaces:
Paused
Paused
Download src/lib/components/ui/select/select-scroll-down-button.svelte from Wenluo/RobotHub-Frontend: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/Wenluo/RobotHub-Frontend/resolve/main/src/lib/components/ui/select/select-scroll-down-button.svelte
- Command line
-
hf download hf://spaces/Wenluo/RobotHub-Frontend/src/lib/components/ui/select/select-scroll-down-button.svelte
-
curl -L -o select-scroll-down-button.svelte https://huggingface.co/spaces/Wenluo/RobotHub-Frontend/resolve/main/src/lib/components/ui/select/select-scroll-down-button.svelte
614 Bytes
| <script lang="ts"> | |
| import ChevronDownIcon from "@lucide/svelte/icons/chevron-down"; | |
| import { Select as SelectPrimitive } from "bits-ui"; | |
| import { cn, type WithoutChildrenOrChild } from "$lib/utils.js"; | |
| let { | |
| ref = $bindable(null), | |
| class: className, | |
| ...restProps | |
| } | |
| </script> | |
| <SelectPrimitive.ScrollDownButton | |
| bind:ref | |
| data-slot="select-scroll-down-button" | |
| class={cn("flex cursor-default items-center justify-center py-1", className)} | |
| {...restProps} | |
| > | |
| <ChevronDownIcon class="size-4" /> | |
| </SelectPrimitive.ScrollDownButton> | |