UNPKG

@gluestack-ui/utils

Version:

Utility functions and hooks for gluestack-ui

17 lines 729 B
import type { AriaDialogProps } from '@react-types/dialog'; import type { DOMAttributes, FocusableElement } from '@react-types/shared'; import type { RefObject } from 'react'; export interface DialogAria { /** Props for the dialog container element. */ dialogProps: DOMAttributes; /** Props for the dialog title element. */ titleProps: DOMAttributes; } export interface DialogProps extends AriaDialogProps { } /** * Provides the behavior and accessibility implementation for a dialog component. * A dialog is an overlay shown above other content in an application. */ export declare function useDialog(_props: DialogProps, _ref: RefObject<FocusableElement>): DialogAria; //# sourceMappingURL=useDialog.d.ts.map