@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
18 lines (17 loc) • 848 B
TypeScript
import * as React from 'react';
import type { GenericHTMLProps } from '../../utils/types.js';
import type { InteractionType } from '../../utils/useEnhancedClickHandler.js';
export declare function usePopoverPopup(params: usePopoverPopup.Parameters): usePopoverPopup.ReturnValue;
declare namespace usePopoverPopup {
interface Parameters {
getProps: (externalProps?: GenericHTMLProps) => GenericHTMLProps;
titleId: string | undefined;
descriptionId: string | undefined;
initialFocus: React.RefObject<HTMLElement | null> | ((interactionType: InteractionType) => React.RefObject<HTMLElement | null>) | undefined;
}
interface ReturnValue {
getPopupProps: (externalProps?: GenericHTMLProps) => GenericHTMLProps;
resolvedInitialFocus: React.RefObject<HTMLElement | null> | 0;
}
}
export {};