Skip to content

Instantly share code, notes, and snippets.

View danestves's full-sized avatar
📚
Spreading knowledge throughout LATAM

Daniel Esteves danestves

📚
Spreading knowledge throughout LATAM
View GitHub Profile
@alexanderson1993
alexanderson1993 / AlertDialogProvider.tsx
Created April 2, 2023 19:07
A multi-purpose alert/confirm/prompt replacement built with shadcn/ui AlertDialog components.
"use client";
import * as React from "react";
import { Input } from "@/components/ui/Input";
import { Button } from "@/components/ui/Button";
import {
AlertDialog,
AlertDialogContent,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogDescription,