geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
23 lines • 868 B
TypeScript
export type DialogProps = {
trigger: React.ReactNode;
body: React.ReactNode;
title?: string;
description?: string;
footer?: React.ReactNode;
footerClassName?: string;
contentClassName?: string;
onOpenChange?: (open: boolean) => void;
open?: boolean;
/**
* Radix defaults to `true`: blocks pointer events outside the dialog and traps focus
* within it. Set `false` when the dialog needs to coexist with a separately-portalled
* overlay (e.g. the ImageEditor, which lives outside this dialog's DOM tree) — otherwise
* Radix's focus trap fights that overlay for focus, and its pointer-events block makes
* the overlay unclickable.
*/
modal?: boolean;
onInteractOutside?: (e: any) => void;
onOpenAutoFocus?: (e: any) => void;
id?: string;
};
//# sourceMappingURL=dialog.types.d.ts.map