Usage
Chat Message Metadata belongs to a message turn in the Chat family. It renders only when a timestamp, status, footer, or action is present.
import "@nordhealth/components/lib/ChatMessageMetadata"
Composition
Chat Message Metadata is the optional supporting row for one Chat Message. It combines timestamp, delivery status, footer, and action regions, inherits sender-aware alignment from the surrounding turn, and preserves consumer-owned content and controls.
Examples
Time and delivery state
Use timestamp for short static text, or place a localized Nord Timestamp in the timestamp slot. Delivery states are sending, sent, delivered, read, and error. The component supplies visible status wording and symbols so progress and failure do not depend on color alone.
Use the footer slot for supporting detail and the actions slot for message-specific controls. Actions remain normal consumer-owned elements with their own labels, focus, and event behavior.
Accessibility
Keep timestamp wording concise and use the Timestamp component when the full machine-readable time matters. Give icon-only actions accessible names, and avoid repeating information already present in the message’s accessible label.
Templates
See this component composed into complete application views:
API reference
ChatMessageMetadata
Chat Message Metadata presents optional timestamps, delivery state, footer content, and actions without recreating consumer-owned controls.
<nord-chat-message-metadata></nord-chat-message-metadata>Props
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
timestamp | timestamp | Display-ready timestamp text. | string | undefined | — |
status | status | Current delivery status. | ChatMessageStatus | undefined | — |
Slots
| Slot name | Description |
|---|---|
timestamp | Consumer-formatted timestamp content, taking precedence over the string property. |
footer | Additional message details such as an edited marker. |
actions | Consumer-owned message actions. |