Skip to content
Somewhere design system

Forms

Message

A form or page status message.

import { Message } from "@somewhere-com/ds";

<Message tone="error">Incorrect password. Please try again.</Message>
<Message tone="success">Access granted. Redirecting…</Message>

Props

Status colours are only for messages. Don’t use them as brand accents.

Add the message when the status changes. Don’t keep it rendered and swap its text.

For an error that belongs to one field, use FormField’s error, so it’s also linked to the input.

Examples

Rendered from the Storybook stories. To change props and see every state live, open Message in Storybook.

Tones

Access granted. Redirecting…