Skip to content

BubbleList ​

Smart chat scroll container component, designed specifically for conversation scenarios.

Features ​

  • 📜 Auto Scroll - Automatically scrolls to bottom when content increases, ensuring latest messages are visible
  • 🔝 Quick Navigation - Supports one-click scroll to top, bottom, or specified position
  • 🔘 Smart Indicator - Automatically shows "Return to Bottom" button when user scrolls up to view history
  • 🎨 Highly Customizable - Supports custom return button styles and trigger thresholds

Basic Usage ​

Custom Advanced Usage ​

Props ​

PropertyDescriptionTypeDefault
bottomThresholdDistance threshold to determine "scrolled to bottom" (px)number30

Ref ​

Access component instance through ref to call the following methods:

Method NameDescriptionParameters
scrollToBottomScroll to bottom(smooth?: string)
scrollToTopScroll to top(smooth?: string)
scrollToIndexScroll to position(index: number, smooth?: string)

Slots ​

Slot NameDescriptionScope Parameters
defaultList content area-
bottom-actionCustom back-to-bottom button{ scrollToBottom, scrollToTop, scrollToIndex }