![]() |
VOOZH | about |
Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโs design system.
The Toast is used to display live feedback to the user. The Position is used to specify the toast position by adding the utility classes on a wrapper element of the viewport.
Primer CSS Toast Position Class:
Syntax:
<div class="*position"> <div class="Toast"> <span class="Toast-icon"> Content </span> <span class="Toast-content"> Content </span> </div> </div>
Example 1: The following code demonstrates the Primer CSS Toast Position at the bottom right position.
Output:
Example 2: This example demonstrates the Primer CSS Toast Position at the top-left position.
Output:
Reference: https://primer.style/#toast-position