BackBottom

BackBottom is a scroll navigation button that appears when users have scrolled up in a chat interface. It monitors scroll position and automatically shows/hides based on a configurable visibility threshold. When clicked, it smoothly scrolls the target container back to the bottom, making it ideal for chat applications where new messages appear at the bottom.

import { BackBottom } from '@lobehub/ui/chat';

Default

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

Demo Text Contents

APIs

PropertyDescriptionTypeDefault
classNameAdditional CSS class for the componentstring-
onClickCallback function called when button is clicked(e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void-
styleCustom CSS stylesCSSProperties-
targetContainer to monitor for scrolling; requiredTarget from ahooks/useScroll-
textText to display on the buttonstring-
visibilityHeightHeight threshold to trigger button visibilitynumber400