Toaster

A notification component for displaying brief, non-intrusive messages to the user.

Usage

React
app/layout.tsx
import { Toaster } from '@isyuricunha/ui'

const Layout = ({ children }) => {
  return (
    <html>
      <body>
        {children}
        <Toaster />
      </body>
    </html>
  )
}

export default Layout
import { toast } from '@isyuricunha/ui'
toast('Event has been created.')
Edit on GitHub