Primitive
UI Message Bubble
@remocn/message-bubble
From remocn
A chat message bubble whose hidden/visible state is a pure function of the timeline. The renderer is a pure function of a MessageBubbleStyle (opacity, translateY, scale); useMessageBubbleTransition eases the rise-in enter. The incoming/outgoing variant resolves bubble color and alignment from the theme, and an optional reaction badge pops in on its own channel.
Install
npx shadcn@latest add @remocn/message-bubbleWhen to use
- Good for
- You are hand-timing a single message landing on a beat you control, driving `style` from `useMessageBubbleTransition`.
- Avoid for
- You want a whole scripted conversation with a composer, typing beats, and reactions — use `chat-flow`, which schedules bubbles for you.
Specs
- Length type
- State-driven
- Style
- clean
- License
- MIT