(react) add Toast component

This component allows to create dynamic Toast appearing at the bottom
of the screen for few seconds.
This commit is contained in:
Nathan Vasse
2024-01-05 11:54:39 +01:00
committed by NathanVss
parent dd1a677a76
commit 132b676ff7
13 changed files with 739 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import { DefaultTokens } from "@openfun/cunningham-tokens";
export const tokens = (defaults: DefaultTokens) => {
return {
"slide-in-duration": "1000ms",
"slide-out-duration": "300ms",
"background-color": defaults.theme.colors["greyscale-100"],
color: defaults.theme.colors["greyscale-900"],
"font-weight": defaults.theme.font.weights.regular,
"icon-size": defaults.theme.font.sizes.l,
"progress-bar-height": "3px",
};
};