MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / Toaster

Function Toaster

src/components/ui/sonner.tsx:6–23  ·  view source on GitHub ↗
({ ...props }: ToasterProps)

Source from the content-addressed store, hash-verified

4import { Toaster as Sonner, ToasterProps } from "sonner"
5
6const Toaster = ({ ...props }: ToasterProps) => {
7 const { theme = "system" } = useTheme()
8
9 return (
10 <Sonner
11 theme={theme as ToasterProps["theme"]}
12 className="toaster group"
13 style={
14 {
15 "--normal-bg": "var(--popover)",
16 "--normal-text": "var(--popover-foreground)",
17 "--normal-border": "var(--border)",
18 } as React.CSSProperties
19 }
20 {...props}
21 />
22 )
23}
24
25export { Toaster }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected