Skip to content

Commit

Permalink
Mybranch (viamrobotics#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterborges authored Jun 17, 2024
1 parent b29c25b commit 0fcffba
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
Binary file added packages/docs/public/copy/carbon-copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/docs/src/pages/patterns/links.mdx
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 packages/docs/src/pages/patterns/toasts-vs-notifications.mdx
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?

![Untitled](/toasts-vs-notifications/toasts-vs-notifications-flowchart.jpg)

| 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> |


![Untitled](/toasts-vs-notifications/notification-banner-toast-thumbnails.png)

0 comments on commit 0fcffba

Please sign in to comment.