Download src/components/shared/buttons/scroll-to-bottom-button.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/shared/buttons/scroll-to-bottom-button.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/shared/buttons/scroll-to-bottom-button.tsx
-
curl -L -o scroll-to-bottom-button.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/shared/buttons/scroll-to-bottom-button.tsx
576 Bytes
| import ArrowSendIcon from "#/icons/arrow-send.svg?react"; | |
| interface ScrollToBottomButtonProps { | |
| onClick: () => void; | |
| } | |
| export function ScrollToBottomButton({ onClick }: ScrollToBottomButtonProps) { | |
| return ( | |
| <button | |
| type="button" | |
| onClick={onClick} | |
| data-testid="scroll-to-bottom" | |
| className="flex items-center justify-center size-8 rounded-full bg-[var(--oh-surface)] text-[var(--oh-muted)] hover:bg-tertiary hover:text-white rotate-180 cursor-pointer transition-colors" | |
| > | |
| <ArrowSendIcon width={15} height={15} /> | |
| </button> | |
| ); | |
| } | |