Components / Navigation & overlaysv1.0.0 · updated 2026-09-25
Receipt Toast
Free · MITCall useToast() from anywhere under the provider. Each toast shows a ring that empties over its lifetime and can be dismissed by click.
feedbacknotification
Customize
Accent
Install
$ npm install motion- Copy
Toast.tsxfrom the Code tab intocomponents/brazen/. - Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 1
| Prop | Type | Default | Description |
|---|---|---|---|
useToast() | (message: string) => void | — | Show a toast. |
Features
- Hook API
- Countdown ring
- Stacks and dismisses
- aria-live polite
Dependencies
motion@^14.0.0react@>=19peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Toasts appear and leave without movement.