MessageError API
API reference docs for the React MessageError component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { MessageError } from '@mui/x-chat/headless';
// or
import { MessageError } from '@mui/x-chat/headless';Learn about the difference by reading this guide on minimizing bundle size.
Props of the native component are also available.
| Name | Type | Description |
|---|
The component cannot hold a ref.
| Slot name | Class name | Default component | Description |
|---|---|---|---|
| root | The root element of the per-message error primitive. Rendered with role="alert" so screen readers announce the error. |
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.