Skip to main content

Variable: AlertDialogPortal

@arolariu/components


@arolariu/components / AlertDialogPortal

Variable: AlertDialogPortal

const AlertDialogPortal: ForwardRefExoticComponent<Omit<DialogPortalProps, "ref"> & RefAttributes<HTMLDivElement>> = BaseAlertDialog.Portal

Defined in: components/ui/alert-dialog.tsx:150

Portals alert-dialog descendants outside the local DOM hierarchy.

Remarks

  • Renders no DOM element by default and portals descendants into the document body
  • Built on Base UI Alert Dialog
  • Does not expose a render prop because it only controls mounting context
  • Styling via CSS Modules with --ac-* custom properties through descendant components

Example

<AlertDialogPortal>
<AlertDialogOverlay />
<AlertDialogContent />
</AlertDialogPortal>

See

Base UI Documentation

// was this page useful?