Message
One turn in a conversation: unboxed assistant text, a user bubble, and hover actions.
What changed in the last release?
Streaming got faster, and code blocks load on demand.
When to use
- Use when
- One turn in a conversation, from the person or the assistant, with actions on hover.
- Avoid when
- A notification or status; use Alert or Toast.
Installation
The source lands in src/components/ui/message.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@stylexjs/stylex- Shelf items
- Button, Copy button,
foundations, Icons, Tooltip,utils - Figma
- Optional native Figma library. See Designers.
Verified
- Size
- 1.9 kB gzipped on its own, 37 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 1 story
- Behavior
- 1 interaction test in Storybook
- React Doctor
- React Doctor finds nothing