Overlay

Dialog API

Dialog is a client-only modal primitive for confirmation, focused editing, and high-priority UI.

Preview

Import

import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@axonyx/react/client";

Props

PropTypeDefaultDescription
openbooleanrequiredControlled open state.
onOpenChange(open: boolean) => voidrequiredCalled when backdrop closes the dialog.
childrenReactNoderequiredDialog sections and body content.

CSS contract

.ax-dialog
.ax-dialog__backdrop
.ax-dialog__panel
.ax-dialog__header
.ax-dialog__title
.ax-dialog__content
Use sparingly

Dialog should interrupt flow only when the user needs focus or must confirm an important action.