Files
SupportBot-Dashboard/dashboard/src/components/ui/sonner.tsx
T
Char b82f69783d Add dashboard UI source and track it in the repository.
Expose the Vite/React website source under dashboard/ (with node_modules still ignored) so the full dashboard can be built and maintained from this repo.
2026-07-26 13:09:19 +01:00

26 lines
661 B
TypeScript

import { Toaster as Sonner } from "sonner";
type ToasterProps = React.ComponentProps<typeof Sonner>;
function Toaster({ ...props }: ToasterProps) {
return (
<Sonner
theme="dark"
position="bottom-right"
richColors
closeButton
style={{ fontFamily: '"Poppins", system-ui, sans-serif' }}
toastOptions={{
classNames: {
toast:
"group toast group-[.toaster]:bg-card group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
description: "group-[.toast]:text-muted-foreground",
},
}}
{...props}
/>
);
}
export { Toaster };