CSS
<div class="tng-notification" role="status"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-info" aria-hidden="true"></i> <strong class="tng-notification-title">Title</strong> <span>Description</span> <a class="tng-link is-neutral" href="#">Link</a> </div> <button class="tng-icon-button is-md is-ghost" type="button" aria-label="Dismiss" > <i class="tng-icon icon-close" aria-hidden="true"></i> </button> </div> <p>Body text that adds context.</p> <div class="tng-notification-actions"> <a class="tng-link is-neutral" href="#"> <i class="tng-icon icon-link" aria-hidden="true"></i> <span>Link</span> </a> <button class="tng-button is-tertiary is-ghost" type="button"> Action </button> </div></div>Every part is optional: leave out what you don’t need. Without a close button, the header shrinks to its text.
<div class="tng-notification is-success" role="status"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-check" aria-hidden="true"></i> <strong class="tng-notification-title">Changes saved</strong> </div> </div></div>
Changes saved
Variants
Section titled “Variants”The default variant is neutral. Each variant has its own icon: icon-error for error, icon-check for success, and icon-info for the others.
<div class="tng-notification is-error" role="alert"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-error" aria-hidden="true"></i> <strong class="tng-notification-title"> We couldn't save the file </strong> </div> </div></div><div class="tng-notification is-info" role="status"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-info" aria-hidden="true"></i> <strong class="tng-notification-title"> Maintenance on Sunday </strong> </div> </div></div><div class="tng-notification is-warning" role="status"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-info" aria-hidden="true"></i> <strong class="tng-notification-title"> Your session expires soon </strong> </div> </div></div><div class="tng-notification is-success" role="status"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-check" aria-hidden="true"></i> <strong class="tng-notification-title">Changes saved</strong> </div> </div></div><div class="tng-notification is-neutral" role="status"> <div class="tng-notification-header"> <div class="tng-notification-summary"> <i class="tng-icon icon-info" aria-hidden="true"></i> <strong class="tng-notification-title"> Copied to clipboard </strong> </div> </div></div>
We couldn't save the file
Maintenance on Sunday
Your session expires soon
Changes saved
Copied to clipboard
Recipes
Section titled “Recipes”A toast with auto-dismiss that pauses on hover and focus, closes on Escape while focused, and announces through a live region that’s already in the DOM. The styleguide doesn’t ship toast placement, so the recipe positions its own.
Changes saved