基础动画
UI Message Bubble
@remocn/message-bubble
来自 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.
安装
npx shadcn@latest add @remocn/message-bubble适用场景
- 适合
- You are hand-timing a single message landing on a beat you control, driving `style` from `useMessageBubbleTransition`.
- 避免
- You want a whole scripted conversation with a composer, typing beats, and reactions — use `chat-flow`, which schedules bubbles for you.
规格
- 时长类型
- 随状态变化
- 风格
- clean
- 许可证
- MIT