#249
Delivery status
Four outgoing bubbles, one per delivery state: pending, sent, delivered and read.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Delivery status" pattern (@codeatlasdev/ui demo #249, display/message-bubble) in my app.
Call get_demo({ ids: ["#249"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Showing message delivery ticks in a chat, with a visually hidden status text for screen readers.
Keep these library parts, with the props and tokens the demo uses:
- MessageBubble from "@codeatlasdev/ui"
Behaviour to keep:
- `const states = ['pending', 'sent', 'delivered', 'read'] as const;`
- `{#each states as status}` renders `<MessageBubble direction="out" time="09:41" {status}>`
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- MessageBubble
@codeatlasdev/ui
How it is built
- `const states = ['pending', 'sent', 'delivered', 'read'] as const;`
- `{#each states as status}` renders `<MessageBubble direction="out" time="09:41" {status}>`
Related
Loading source.