examples/toast-info.tsx
import { Toast } from "@/components/wensity/toast";export function InfoToast() {return (<Toastvariant="info"title="Source sync started"description="Generated manifests will update in a few seconds."/>);}
React toast notifications on Base UI in info, success, warning, error, and action styles, with swipe to dismiss, six positions, and a hook to fire them.
Practical examples and common states for the same installable component.
Low-urgency notification for background state changes.
Confirmation with a calm positive accent.
A recoverable state that should still be noticed.
Failure state with assertive role and clear hierarchy.
Place toast viewports in any corner of the page.
Toast is a React and Tailwind CSS toast notification system on Base UI, in Next.js or any React app, with info, success, warning, error, and action styles. Wrap the app in ToastProvider, place ToastList once, and call add from useToastManager anywhere to show a message, shown for five seconds by default, three at most. Toasts stack in any corner or along the top or bottom center, can be swiped away toward their edge, and support an action button. Errors and warnings use role alert. To fire toasts outside React, pass a createToastManager instance to the provider.
Run the following command
pnpm dlx wensity@latest add toast
npx wensity@latest add toast
yarn dlx wensity@latest add toast
bunx wensity@latest add toast
Import Toast from @/components/wensity/toast and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import { Toast } from "@/components/wensity/toast";export function ToastDemo() {return (<Toastvariant="success"title="Template archive ready"description="The buyer ZIP was generated and uploaded."/>);}
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "info" | "success" | "warning" | "error" | "action" | "info" | Status colour recipe and the default icon that comes with it. |
title | React.ReactNode | - | Bold heading line of the toast. |
description | React.ReactNode | - | Body copy under the title. |
icon | React.ReactNode | - | Overrides the icon the variant supplies. |
action | React.ReactNode | - | Trailing slot for a button or link. |
onDismiss | () => void | - | When set, renders a dismiss button and calls this on press. |
dismissLabel | string | "Dismiss notification" | Accessible label for the dismiss button. |
A React alert for inline info, success, warning, and error messages, with titles, an action button, a dismiss control, and screen reader roles built in.
A React modal dialog on Base UI with default, confirmation, form, fullscreen, and scrollable layouts, focus trapping, and a ready made confirm flow.
A React loading spinner in arc, ring, dots, and pulse styles with a screen reader label, five tones, three sizes, and an overlay that blocks a region.
A React button component on Base UI with seven variants, from the solid default to ghost and link, four sizes, icon slots, and a built in loading state.

A pixel-faithful Apple Dynamic Island that morphs, splits, and breathes while it hosts live activities inside your app.

Hand-rolled canvas particles with gravity, drag, terminal velocity, and paper ribbons that flutter on the way down.

A soft Apple Intelligence edge glow that traces the screen with a rotating iridescent gradient you can toggle on.

A macOS genie minimize built on a real per-slice warp that sucks any window, folder, or panel down into a waiting dock.