We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b37985 commit 4088630Copy full SHA for 4088630
src/index.tsx
@@ -219,7 +219,7 @@ const Toast = (props: ToastProps) => {
219
function getLoadingIcon() {
220
if (icons?.loading) {
221
return (
222
- <div className="loader" data-visible={toastType === 'loading'}>
+ <div className="sonner-loader" data-visible={toastType === 'loading'}>
223
{icons.loading}
224
</div>
225
);
@@ -366,7 +366,7 @@ const Toast = (props: ToastProps) => {
366
{toastType || toast.icon || toast.promise ? (
367
<div data-icon="">
368
{toast.promise || (toast.type === 'loading' && !toast.icon)
369
- ? toast.icon || icons?.loading || getLoadingIcon()
+ ? toast.icon || getLoadingIcon()
370
: null}
371
{toast.type !== 'loading' ? toast.icon || icons?.[toastType] || getAsset(toastType) : null}
372
0 commit comments