Back to docs
Component

Chat Bubble

Chat message bubble with sender variants and timestamp.

Install

npx shadcn@latest add @native-bits/chat-bubble

Dependencies

react-native-reanimated
Try in Sandbox
data-displaymessagingmobile

Props

PropTypeDefaultDescription
sender'self' | 'bot' | 'other'-Message owner
messagestring-Message text
timestring-Timestamp label

Usage

```tsx
import { chat-bubble } from '@/components/native-bits/chat-bubble'

<ChatBubble sender="bot" message="Your ride arrives in 3 min" time="09:42" />
```

Source code

Loading...