openhands / src /components /shared /buttons /scroll-to-bottom-button.tsx
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
9b906ea verified
Raw History Blame Contribute Delete
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>
);
}