MCPcopy Create free account
hub / github.com/ComfyWorkflows/ComfyUI-Launcher / Toaster

Function Toaster

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

Source from the content-addressed store, hash-verified

4type ToasterProps = React.ComponentProps<typeof 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 toastOptions={{
14 classNames: {
15 toast: 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
16 description: 'group-[.toast]:text-muted-foreground',
17 actionButton:
18 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
19 cancelButton:
20 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
21 },
22 }}
23 {...props}
24 />
25 )
26}
27
28export { Toaster }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected