new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · all subjects

dialog & sheets

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Alert Dialog destructive variant

The Alert Dialog destructive variant is used by adding a destructive action button using the AlertDialogAction component to indicate a destructive action.

Alert Dialog media support

The AlertDialogMedia component can be used to add a media element such as an icon or image to the alert dialog, placed within the AlertDialogHeader.

Alert Dialog component description

The Alert Dialog is a modal dialog that interrupts the user with important content and expects a response.

Alert Dialog composition structure

The Alert Dialog composition is: AlertDialog contains AlertDialogTrigger and AlertDialogContent. AlertDialogContent contains AlertDialogHeader (which contains AlertDialogMedia, AlertDialogTitle, and AlertDialogDescription) and AlertDialogFooter (which contains AlertDialogCancel and AlertDialogAction).

Alert Dialog basic usage example

Basic Alert Dialog usage: ```tsx import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/components/ui/alert-dialog" <AlertDialog> <AlertDialogTrigger asChild> <Button variant="outline">Show Dialog</Button> </AlertDialogTrigger> <AlertDialogContent> <AlertDialogHeader> <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle> <AlertDialogDescription> This action cannot be undone. This will permanently delete your account from our servers. </AlertDialogDescription> </AlertDialogHeader> <AlertDialogFooter> <AlertDialogCancel>Cancel</AlertDialogCancel> <AlertDialogAction>Continue</AlertDialogAction> </AlertDialogFooter> </AlertDialogContent> </AlertDialog> ```

Give your agent this brain