Conversation
proConversation keeps a growing entry stream anchored to its latest item until a reader deliberately scrolls away.
Installation
Add this component with the NateUI CLI.
Examples
Without Scroll Button
API
Conversation
| Prop | Description | Type | Default |
|---|---|---|---|
children | Entries to render, plus an optional direct Conversation.ScrollButton child. | ReactNode | — |
className | Classes merged with the full-height conversation root. | string | — |
...divProps | Standard <div> attributes forwarded to the conversation root. | ComponentProps<'div'> | — |
Conversation.ScrollButton
| Prop | Description | Type | Default |
|---|---|---|---|
aria-label | Accessible name for the return-to-latest control. | string | 'Scroll to bottom' |
className | Classes merged with the positioned circular button. | string | — |
disabled | Prevents the control from scrolling. | boolean | false |
...buttonProps | Standard <button> attributes forwarded to the control. | ComponentProps<'button'> | — |