ENGLISH·COURSE API
    Preparing search index...

    Module

    components/ui/dialog/dialog

    Type Aliases

    DialogContentProps

    Props accepted by DialogContent.

    Functions

    Dialog

    shadcn/ui Dialog root — the state machine behind a modal.

    DialogTrigger

    The element that opens the dialog. Pass asChild to project the trigger behaviour onto your own button instead of rendering a nested one.

    DialogPortal

    Portal that lifts the dialog out of the DOM position where it was declared and mounts it at the document root.

    DialogClose

    Closes the dialog when activated. Use asChild to turn any element — most often a Button — into a close affordance.

    DialogOverlay

    The dimmed backdrop behind an open dialog.

    DialogContent

    The dialog card itself — portalled, centered, and layered over a DialogOverlay.

    DialogHeader

    Stacks a DialogTitle and DialogDescription at the top of the card. Centered on narrow screens, left-aligned from sm up.

    DialogFooter

    Action row at the bottom of the card. Buttons stack in reverse order on narrow screens so the primary action sits closest to the thumb, and align to the trailing edge from sm up.

    DialogTitle

    The dialog's heading. Supplies the accessible name of the surrounding DialogContent — required, even when visually hidden.

    DialogDescription

    Supporting copy under the title. Wired to the dialog's aria-describedby, so this is what a screen reader reads after the name.