Messaging components
Learn how to use the messaging components in your project.
Installation
Messaging component depends on other components to function properly. Before using them, make sure to add the required components via CLI.
Use the following command to install them:
CLI
Manual
npx untitledui add messaging
Message status
In order to display the message status separately, you can use the MessageStatus
component. It accepts the status
prop which can be one of the following:
sent
read
failed
Optionally, you can also pass the readAt
prop to display the date and time when the message was read.
Preview
Code
Message action examples
Below are examples and variations of this message action component:
Preview
Code
Preview
Code
Preview
Code