Skip to content

Message

A chat turn: a plain article for the assistant, a bubble for the user. Adapted from beUI (MIT).

The item lays a turn out and ships no bubble. An assistant turn is a full-width column; a user turn sits at the end of the row, and the bubble is your own element inside it. With animateIn a turn rises and fades in as it arrives; with reduced motion it is in place at once.

User and assistant

Which tasks are still open for the March release?

Three tasks are open. Two are in review and one has no owner yet.

Assign the last one to the design team.

Done. The export dialog task now belongs to the design team and is due on Thursday.

Animate in

What should change before the release goes out?

With its own name

Is the invoice for the workshop paid?

Yes. Invoice 0142 was paid in full on Monday.

Installation

npx shadcn@latest add @khaeli/message

Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.

Installs with

npm packages
  • motion ^12.23.12

Accessible name

  • Each turn is an article named from from: user message or assistant message.
  • Pass aria-label to say more than the side, such as who wrote the turn or when.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/message.json