Sonner

Sonner: Toast notification system with stacked queue, promise states, and action buttons. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Sonner

npx motion-ui-skill add sonner

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • next-themes
  • react
  • sonner
  • tailwind-merge

Source files

Sonner

Component from Motion UI: sonner

Install

npx motion-ui-skill add sonner

Dependencies

  • clsx
  • lucide-react
  • next-themes
  • react
  • sonner
  • tailwind-merge

Usage

"use client";

import Sonner from "@/components/motion/sonner";

export function Example() {
  return (
    <div className="p-6">
      <Sonner />
    </div>
  );
}

Browse this category