Primitives

Toast

Tone icons in tiles, a tone wash, promises with a spinner. Nine positions: every corner and edge, and the middle of the screen.

5 examples 1 animated · 1 Pro Code and Figma for each

Pick a spot on the screen.

toast("…", { position: "bottom-right" }) · or <Toaster position="bottom-right" />

Examples#

Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.

Success

Something worked: say what, with the detail that proves it.

Error

Something failed: say why, so people know what to do.

Warning and info

Heads-ups that need no action right now.

With an undo

After a destructive step, offer to take it back.

Promise

One toast that shows the work, then the result.

Animated#

Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.

Message with reply Pro

A person, their message, a reply button, and a bar that drains until it closes; hovering holds it.

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Button, Toaster, toast, type ToastPosition } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<Toaster>

src/components/ui/toast.tsx
PropTypeDefaultDescription
position"top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right""bottom-right"

Also takes Omit<React.ComponentProps<typeof Sonner>, "position">.

<Button>

src/components/ui/button.tsx
PropTypeDefaultDescription
asChildbooleanfalse
loadingboolean—

Also takes ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>.

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui