toast-demo

PreviousNext
Docs
kanpekiexample

Preview

Loading preview…
registry/examples/toast/toast-demo.tsx
"use client";

import { toast } from "sonner";
import { Button } from "~/registry/ui/button";

export function ToastDemo() {
  return (
    <Button onPress={() => toast("Event has been created")} variant="outline">
      Show Toast
    </Button>
  );
}

Installation

npx shadcn@latest add @kanpeki/toast-demo

Usage

import { ToastDemo } from "@/components/toast-demo"
<ToastDemo />