Message()function

Message({ children, ...props }: MessageProps): void
ParamType
childrenMessageProps
The message content. required
Return
unknown
The message paragraph element.

Status-coloured paragraph used for inline feedback messages.

  • Sets an ARIA role of "alert" for error/danger statuses, otherwise "status".

Examples

<Message status="error">Something went wrong</Message>