Skip to content

Instantly share code, notes, and snippets.

View fvaldes33's full-sized avatar
💻
console.log('it worked!')

Franco Valdes fvaldes33

💻
console.log('it worked!')
View GitHub Profile
@fvaldes33
fvaldes33 / shadcn-toast-compat
Last active January 3, 2024 23:50
Migrate to the new sonner toast without rewriting your old toasts
import { Toaster as Sonner, toast as sonner } from "sonner";
const Toaster = ({ ...props }: ToasterProps) => {
return (
<Sonner
theme={"light"}
className="toaster group"
toastOptions={{
classNames: {
toast: