Get the kit
Components / Navigation & overlaysv1.0.0 · updated 2026-09-25

Receipt Toast

Free · MIT

Call useToast() from anywhere under the provider. Each toast shows a ring that empties over its lifetime and can be dismissed by click.

feedbacknotification
Free
Customize
Accent

Install

$ npm install motion
  1. Copy Toast.tsx from the Code tab into components/brazen/.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 1

PropTypeDefaultDescription
useToast()(message: string) => void—Show a toast.

Features

  • Hook API
  • Countdown ring
  • Stacks and dismisses
  • aria-live polite

Dependencies

  • motion@^14.0.0
  • react@>=19 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Toasts appear and leave without movement.

Related