Alert & Notification
A short message about an event or something that needs attention, in five intents (Info/Help, Warning, Success, Error, Update). Shown inline as an alert, or as a toast that dismisses itself.
Insert your alert title here!
Add a solid info Orvain Alert, rounded label style, with the preview icon, the title “Insert your alert title here!”, an “Update” button and a dismiss button.
Show as toast
When to use#
- Inline, to report on a section or form: a save failed, a setting has a side effect, a trial ends soon.
- As a toast, to confirm an action the person just took: Link copied, Invite sent.
- In the error intent, to say what went wrong and what to do next in one or two sentences.
When not to use
- Use a Banner for a message about the whole product or account that stays at the top of the page.
- Use a Modal for a decision that must be made before anything else can happen.
Anatomy#
534px wide, 24px radius (fully round as a pill), a 1px #e1e1e1 stroke and a soft layered shadow.
A 38px white tile holding the intent's info glyph, or a file icon in the content-heavy alert.
Satoshi Medium 14, one line on a label alert.
Content heavy only: a line or two of description, a primary link and a quieter secondary link.
A 32px Update button (label alerts) and a 28px close button, on every variant.
States#
The intent's colour with white text, for what must be seen.
A pale wash of the intent, dark text.
White with dark text; only the glyph carries the intent.
One line, the same as a pill, or a title with description and links.
The same card, stacked in a corner, gone after five seconds; it waits while hovered or focused.
Source#
The Alert & Notification ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.
Used in these blocks

