Skip to content

Commit

Permalink
chore: add className to Toaster
Browse files Browse the repository at this point in the history
  • Loading branch information
luizakp committed Nov 7, 2024
1 parent a62f743 commit 89fcc64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ui/Toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ import {
ToastViewport,
} from "#/components/ui/Toast";
import { useToast } from "#/hooks/useToast";
import { cn } from "#/lib";

function Toaster({
className,
position = "top-right",
}: {
className: string;
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
}) {
const { toasts } = useToast();
Expand All @@ -28,7 +31,7 @@ function Toaster({
<ToastClose />
</Toast>
))}
<ToastViewport position={position} />
<ToastViewport className={cn(className)} position={position} />
</ToastProvider>
);
}
Expand Down

0 comments on commit 89fcc64

Please sign in to comment.