基本アニメーション
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