...
Show temporary notifications with automatic dismissal and optional actions.
npx neobrutal add toastBefore calling toast.*, mount Toaster once in your root layout.
import { Toaster } from '@/components/ui/toast'
// In your root layout
<Toaster position='top-right' />import { toast } from '@/components/ui/toast'
import { Button } from '@/components/ui/button'<Button
variant='neutral'
onClick={() =>
toast.info('Event has been created', {
title: 'Success',
})
}
>
Basic toast
</Button>Four built-in types, each with its own color.
Pass actionProps to render a neobrutalist action button inside the toast.
Show a loading state that automatically transitions to success or error when the promise settles.
Set the toast position by passing a position prop to the Toaster component in your root layout.
| Prop | Type | Default | Description |
|---|---|---|---|
| position | "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center" | "bottom-right" | Controls where toast notifications are rendered. |