Toast #2072
andresin87
started this conversation in
Ideas and new features
Toast
#2072
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@s-ui/react-atom-toast: Cannot stack multiple events
The @s-ui/react-atom-notification needs a fully review:
The toaster implementation has a render component approach.
The component has the following props:
show
(show/hide) controlled prop. default: AUTO_CLOSE_TIMES.medium = 6000msautoClose
andautoCloseTime
props.effect
enables/disables the appearance/dissapearance animation.IconClose
node prop. Clicking on them will close its notification.globalClose
prop true set.Decision
Rationale
The current notification implementation does not bring an easy programing experience. It also have bugs and doesnt give the opportunity to stack multiple notifications at a time. Other libraries had a different approach as any can see in:
They have a different approach, exporting a provider component and some functions (notify and other customized fns that fires the principal like success, error, alert, info... for semantical purposes). The container acts as an EventManager Component. It stacks every single notification, all of them can be displayed at the same time, every one with its own timer.
Status
Consequences
Beta Was this translation helpful? Give feedback.
All reactions