snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
40
apps/v4/examples/radix/alert-dialog-media.tsx
Normal file
40
apps/v4/examples/radix/alert-dialog-media.tsx
Normal file
@@ -0,0 +1,40 @@
|
||||
import { CircleFadingPlusIcon } from "lucide-react"
|
||||
|
||||
import {
|
||||
AlertDialog,
|
||||
AlertDialogAction,
|
||||
AlertDialogCancel,
|
||||
AlertDialogContent,
|
||||
AlertDialogDescription,
|
||||
AlertDialogFooter,
|
||||
AlertDialogHeader,
|
||||
AlertDialogMedia,
|
||||
AlertDialogTitle,
|
||||
AlertDialogTrigger,
|
||||
} from "@/styles/radix-nova/ui/alert-dialog"
|
||||
import { Button } from "@/styles/radix-nova/ui/button"
|
||||
|
||||
export function AlertDialogWithMedia() {
|
||||
return (
|
||||
<AlertDialog>
|
||||
<AlertDialogTrigger asChild>
|
||||
<Button variant="outline">Share Project</Button>
|
||||
</AlertDialogTrigger>
|
||||
<AlertDialogContent>
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogMedia>
|
||||
<CircleFadingPlusIcon />
|
||||
</AlertDialogMedia>
|
||||
<AlertDialogTitle>Share this project?</AlertDialogTitle>
|
||||
<AlertDialogDescription>
|
||||
Anyone with the link will be able to view and edit this project.
|
||||
</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
||||
<AlertDialogAction>Share</AlertDialogAction>
|
||||
</AlertDialogFooter>
|
||||
</AlertDialogContent>
|
||||
</AlertDialog>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user