forked from viamrobotics/prime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b29c25b
commit 0fcffba
Showing
5 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.6 KB
...es/docs/public/toasts-vs-notifications/notification-banner-toast-thumbnails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+527 KB
packages/docs/public/toasts-vs-notifications/toasts-vs-notifications-flowchart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
layout: ../../layouts/DocsLayout.astro | ||
title: Links | ||
--- |
16 changes: 16 additions & 0 deletions
16
packages/docs/src/pages/patterns/toasts-vs-notifications.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: ../../layouts/DocsLayout.astro | ||
title: Toasts vs Notifications | ||
--- | ||
# Should I use Notification, Banner, or Toast? | ||
|
||
 | ||
|
||
| Component | Description | Usage | Examples | | ||
| -------- | ------- | -------- | ------- | | ||
| Notification | Appears in the top right corner. <br/><br/> Grabs the users attention and may disrupt their current workflow. | Use for critical events, especially ones that require user action, or when the message cannot be made concise. |<ul><li>System error</li><li>information about payment</li></ul> | | ||
| Banner (Inline) | Fixed inline with page content. <br/><br/> Grabs the user’s attention and does not disappear until action is taken. | Use to communicate information that directly pertains to page content. | <ul><li>Payment info required</li><li>Warning or info messages about certain resource types</li><li>Complex form errors (beyond a single input)</li></ul> | | ||
| Toast | Appears temporarily in the bottom center. <br/><br/> Provide system feedback without interrupting the user’s workflow. | Use for non-critical system feedback. | <ul><li>Created a new resource</li><li>Copied something to the clipboard </li><li>Saved changes</li><li>Deleted a (non-critical) resource</li></ul> | | ||
|
||
|
||
 |