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 July 22, 2024 15:06
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: