Skip to main content

Function: DialogClose()

@arolariu/components


@arolariu/components / DialogClose

Function: DialogClose()

DialogClose(props): ReactElement

Defined in: components/ui/dialog.tsx:165

Closes the dialog from an interactive control inside the modal.

Parameters

props

Readonly<Props>

Returns

ReactElement

Remarks

  • Renders a <button> element by default
  • Built on Base UI Dialog
  • Supports the render prop for element composition
  • Styling via CSS Modules with --ac-* custom properties

Example

<DialogClose>Dismiss</DialogClose>

See

Base UI Documentation

// was this page useful?