export const title = "Messaging components"
export const description = "Powerful and customizable React messaging components built for modern applications and websites. These messaging components are built using React Aria and styled with Tailwind CSS."
import * as Demos from "@/components/application/messaging/messaging.story.tsx";
import * as MessageActions from "@/components/application/messaging/message-action.demo.tsx";
## 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:
```bash
npx untitledui@latest add messaging
```
Copy the files below into your project:
Great! Now you can start using the messaging components in your project by just copy/pasting our examples below.
## 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.
## Message action examples
Below are examples and variations of this message action component:
### Message action minimal {{ tocOnly:true }}
### Message action textarea {{ tocOnly:true }}
### Message action advanced {{ tocOnly:true }}
## Message examples
Below are examples and variations of this message component:
### Message simple {{ tocOnly:true }}
### Message reactions {{ tocOnly:true }}
### Message reply {{ tocOnly:true }}
### Message attachment {{ tocOnly:true }}
### Message audio {{ tocOnly:true }}
### Message image {{ tocOnly:true }}
### Message link preview {{ tocOnly:true }}
### Message link minimal {{ tocOnly:true }}
### Message writing {{ tocOnly:true }}