Message()function

Message({ children, ...props }: MessageProps): void
ParamType
propsMessageProps
Props for <Message> — paragraph props plus colour and status styling variants. required

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>