Feedback
Alert
An inline message about the page or a section. Tones: info, success, warning, critical, each with its own icon.
- Title states what happened; body says what to do next. Plain words, no blame.
criticalis announced immediately (role alert); others are polite.- Use
dismissibleonly for messages that don't need to stay.
When to use
A message about a section or form: validation summary, warning about this record.
Use something else
Whole page or app โ Banner. Result of the user's action โ Toast. Field-level error โ the field's error.
Do
- Title says what happened; body says what to do next.
- Match
toneto severity.
Don't
- Don't stack several alerts; combine them.
- Don't use critical tone for information.
Props
| Prop | Type |
|---|---|
tone | 'info' | 'success' | 'warning' | 'critical' |
title | React.ReactNode |
action | React.ReactNode |
dismissible | boolean |
children | React.ReactNode |
Use
const { Alert } = window.Tessera;
const el = React.createElement(Alert, { /* props */ });