Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Loading Icon issue #364

Open
Cybearnaut opened this issue Mar 6, 2024 · 0 comments
Open

Custom Loading Icon issue #364

Cybearnaut opened this issue Mar 6, 2024 · 0 comments

Comments

@Cybearnaut
Copy link

Cybearnaut commented Mar 6, 2024

Describe the feature / bug 馃摑:

the custom icons property got some problems, where the class name for loading does not match the css
which breaks the loading effect on toast.promise

example:

import { toast, Toaster } from "sonner";

// Component
<Toaster
    icons={{
      loading: <MyLoadingIcon />
    }}
/>

// Calling toast.promise function
toast.promise(myPromise, {
  loading: "Loading",
  success: "Login Successfully",
  error: "Login Fail",
});
image

Here is the quick fix of it
honeypaw@189ce92

@Cybearnaut Cybearnaut changed the title Loading Icon issue Custom Loading Icon issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant