You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a couple of issues with the Sonner component that I'd like to bring to your attention:
TypeScript Error with loading Property: Using the className loading in toastOptions correctly applies the style, but TypeScript shows an error. This seems to be a mismatch in TypeScript definitions.
<SonnertoastOptions={{// ... other options ...classNames: {// ... other class names ...loading: 'class-1 class-2',},}}// ... other props .../>
UX Suggestion for Loading Toast: Currently, the toast of type loading behaves like other toast types in terms of auto-dismissal. For a better user experience, I suggest that the loading toast should not auto-dismiss like the others. Instead, it would be more practical for it to remain visible indefinitely until manually dismissed using its ID.
The text was updated successfully, but these errors were encountered:
I've encountered a couple of issues with the Sonner component that I'd like to bring to your attention:
TypeScript Error with loading Property: Using the className loading in toastOptions correctly applies the style, but TypeScript shows an error. This seems to be a mismatch in TypeScript definitions.
sonner/src/types.ts
Line 18 in 7560716
UX Suggestion for Loading Toast: Currently, the toast of type
loading
behaves like other toast types in terms of auto-dismissal. For a better user experience, I suggest that theloading
toast should not auto-dismiss like the others. Instead, it would be more practical for it to remain visible indefinitely until manually dismissed using its ID.The text was updated successfully, but these errors were encountered: