Skip to content
Documentation

Toastr

Display toast notifications to provide messages

Overview
Miru dashboard in a light theme

The Toastr component displays temporary success or error notifications.

Importing the Toastr Component

To use the Toastr component in our app, we need to import it from our styled components. Here’s how we can import it:

import { Toastr } from "StyledComponents";

Using the Toastr Component

The Toastr component can be used with various props to control its appearance. Here are some examples of how we can use it:

Success message toastr

Toastr.success("Pass the message to be displayed");

success

Error message toastr

Toastr.error("Pass the message to be displayed");

error

Try Miru

Read it once. Run it for real.

The docs explain the workflow. Miru gives you the actual timer, invoice, reports, and payment flow without another pile of tools.

Overview
Miru dashboard in a light theme
Workspace Miru