Download apps/vscode/webview-ui/src/components/ui/sonner.tsx from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 848 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vscode/webview-ui/src/components/ui/sonner.tsx
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vscode/webview-ui/src/components/ui/sonner.tsx
-
curl -L -o sonner.tsx https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vscode/webview-ui/src/components/ui/sonner.tsx
848 Bytes
| import { Toaster as Sonner, toast } from "sonner"; | |
| type ToasterProps = React.ComponentProps<typeof Sonner>; | |
| function 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", | |
| error: "group-[.toaster]:bg-destructive group-[.toaster]:text-white group-[.toaster]:border-destructive", | |
| }, | |
| }} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| export { Toaster, toast }; | |