Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
toast doesn't show correct style - nextjs

I'm using react-toastify.

_app.tsx:

import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

...

  return (
    <AppStateProvider>
      <MainProvider>
      <HeaderProvider>
        <Component {...pageProps} />
        <ToastContainer
          position="top-right"
          autoClose={5000}
          hideProgressBar={false}
          newestOnTop={false}
          closeOnClick
          rtl={true}
          pauseOnFocusLoss
          draggable
          pauseOnHover
        />
       </HeaderProvider>
       </MainProvider>
    </AppStateProvider>
  );
}

in my component:

toast.success( "success")

but it shows like this:

enter image description here

but at demo it shows:

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Here goes my first answer on SO! Ran into a similar situation while trying out React-Toastify as well.

Basically you need to state the theme you want your toast to be.

e.g.

toast.success("success", {
  theme: "colored"
})

"colored" is the theme you are looking for

toast.success("success", {
  theme: "dark"
})

"dark" is also available.

If you don't provide any themes you get the result in the picture you uploaded in the question

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!