MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Toaster

Function Toaster

packages/react/src/components/sonner.tsx:12–35  ·  view source on GitHub ↗
({ ...props }: ToasterProps)

Source from the content-addressed store, hash-verified

10import { Toaster as Sonner, toast, type ToasterProps } from "sonner";
11
12const Toaster = ({ ...props }: ToasterProps) => {
13 return (
14 <Sonner
15 theme="system"
16 className="toaster group"
17 icons={{
18 success: <CircleCheckIcon className="size-4" />,
19 info: <InfoIcon className="size-4" />,
20 warning: <TriangleAlertIcon className="size-4" />,
21 error: <OctagonXIcon className="size-4" />,
22 loading: <Loader2Icon className="size-4 animate-spin" />,
23 }}
24 style={
25 {
26 "--normal-bg": "var(--popover)",
27 "--normal-text": "var(--popover-foreground)",
28 "--normal-border": "var(--border)",
29 "--border-radius": "var(--radius)",
30 } as React.CSSProperties
31 }
32 {...props}
33 />
34 );
35};
36
37export { Toaster, toast };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected