Get StartedComponentsStylingThemingMath & Science
MCP

Chat

Message Scroller

A message list that sticks to the bottom.

Markdown

Import

tsx
import { MessageScroller } from "@indoku/ui"

Examples

Basic usage

Pesan #1 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #2 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #3 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #4 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #5 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #6 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #7 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #8 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #9 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #10 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #11 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #12 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #13 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #14 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #15 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #16 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #17 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #18 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #19 - scroll turun buat liat tombol "ke bawah" muncul.

Pesan #20 - scroll turun buat liat tombol "ke bawah" muncul.

Props

Root

PropTypeDefaultDescription
childrenReactNode–
thresholdnumber80Distance in px from the bottom that still counts as "at the bottom".
watchunknown[]–Dependency array. When it changes (e.g. message count or the last message while streaming) the scroller sticks to the bottom if the user was already there.

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev