UNPKG

@gluestack-ui/utils

Version:

Utility functions and hooks for gluestack-ui

13 lines 570 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 { } export declare function useDialog(props: DialogProps, ref: RefObject<FocusableElement>): DialogAria; //# sourceMappingURL=useDialog.web.d.ts.map