Message()function
Message({ children, ...props }: MessageProps): void| Param | Type | |
|---|---|---|
props | MessageProps | Props for <Message> — paragraph props plus colour and status styling variants. required |
Status-coloured paragraph used for inline feedback messages.
- Sets an ARIA
roleof"alert"for error/danger statuses, otherwise"status".
Examples
<Message status="error">Something went wrong</Message>