@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.
26 lines (25 loc) • 912 B
TypeScript
import * as React from 'react';
import { usePopoverPositioner } from './usePopoverPositioner.js';
import type { BaseUIComponentProps } from '../../utils/types.js';
import type { Side, Align } from '../../utils/useAnchorPositioning.js';
/**
* Positions the popover against the trigger.
* Renders a `<div>` element.
*
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
*/
declare const PopoverPositioner: React.ForwardRefExoticComponent<PopoverPositioner.Props & React.RefAttributes<HTMLDivElement>>;
declare namespace PopoverPositioner {
interface State {
/**
* Whether the popover is currently open.
*/
open: boolean;
side: Side;
align: Align;
anchorHidden: boolean;
}
interface Props extends usePopoverPositioner.SharedParameters, BaseUIComponentProps<'div', State> {
}
}
export { PopoverPositioner };