Skip to content
AI Elements

Conversation

Auto-scrolling chat log with an empty state and jump-to-latest.

Import

tsx
import { Conversation } from "@cronus-ui/ui";
bash
npx cronus-ui add conversation

Examples

API Reference

Generated from the component's exported types.

ConversationProps

Extends HTMLAttributes<HTMLDivElement>

Skip ConversationProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

ConversationContentProps

Extends HTMLAttributes<HTMLDivElement>

Skip ConversationContentProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

ConversationEmptyStateLabels

Skip ConversationEmptyStateLabels props table
PropTypeDefaultDescription
title*
string
description*
string

ConversationEmptyStateProps

Extends HTMLAttributes<HTMLDivElement>

Skip ConversationEmptyStateProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.
title
string
description
string
icon
ReactNode
labels
Partial<ConversationEmptyStateLabels>Override default English strings.

ConversationScrollButtonLabels

Skip ConversationScrollButtonLabels props table
PropTypeDefaultDescription
scrollToBottom*
string

ConversationScrollButtonProps

Extends ButtonProps

Skip ConversationScrollButtonProps props table
PropTypeDefaultDescription
labels
Partial<ConversationScrollButtonLabels>Override default English strings.