基礎動畫
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