sonner-style-error

PreviousNext
Docs
retrouiblock

Preview

Loading preview…
preview/components/sonner-style-error.tsx
import { Button } from "@/components/retroui";
import { toast } from "sonner";

export default function SonnerStyleError() {
  const onClick = () => {
    toast.error("Oops! you ran into a pot hole");
  };

  return <Button onClick={onClick}>Show Toast (Error)</Button>;
}

Installation

npx shadcn@latest add @retroui/sonner-style-error

Usage

import { SonnerStyleError } from "@/components/sonner-style-error"
<SonnerStyleError />