Download src/components/ui/sonner.tsx from launch-calcium/Grabber-In-Tanstack-Two: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/spaces/launch-calcium/Grabber-In-Tanstack-Two/resolve/main/src/components/ui/sonner.tsx
- Command line
-
hf download hf://spaces/launch-calcium/Grabber-In-Tanstack-Two/src/components/ui/sonner.tsx
-
curl -L -o sonner.tsx https://huggingface.co/spaces/launch-calcium/Grabber-In-Tanstack-Two/resolve/main/src/components/ui/sonner.tsx
734 Bytes
| import { Toaster as Sonner } from "sonner"; | |
| type ToasterProps = React.ComponentProps<typeof Sonner>; | |
| const Toaster = ({ ...props }: ToasterProps) => { | |
| return ( | |
| <Sonner | |
| className="toaster group" | |
| toastOptions={{ | |
| classNames: { | |
| toast: | |
| "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg", | |
| description: "group-[.toast]:text-muted-foreground", | |
| actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground", | |
| cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground", | |
| }, | |
| }} | |
| {...props} | |
| /> | |
| ); | |
| }; | |
| export { Toaster }; | |