Skip to content

Toast

An opinionated toast component for React.

Installation

  1. Follow Installation Guide

    To enable DinUI functionality in your project, you will need to properly set up Tailwind and install the necessary dependencies.
  2. Add the Toaster component to your root layout

    import { Toaster } from '@dinui/react/toast'
    export default function RootLayout({ children }) {
    return (
    <html lang="en">
    <head />
    <body>
    <main>{children}</main>
    <Toaster />
    </body>
    </html>
    )
    }
  3. All done

    You now can start using this component in your project.