ortaui
  1. Components
  2. Overlays

Dialog

Centered panel on Base UI Dialog. The backdrop fades over 200ms and the content rises 10px and scales in over 300ms, out over 200ms.

Installation#

npx shadcn add @ortaui/dialog

Examples#

Default#

API reference#

PropTypeDefaultDescription
open / defaultOpenboolean-Controlled or uncontrolled state.
onOpenChange(open: boolean) => void-Called when the open state changes.
showClosebooleantrueDialogContent: the corner close button.
renderReactElement-On triggers and DialogClose: render as a Button.
classNamestring-Merged with the component classes via cn().