UNPKG

@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.

22 lines 844 B
import * as React from 'react'; import type { BaseUIComponentProps } from "../../utils/types.js"; import type { TransitionStatus } from "../../utils/useTransitionStatus.js"; /** * An overlay displayed beneath the popover. * Renders a `<div>` element. * * Documentation: [Base UI Popover](https://base-ui.com/react/components/popover) */ export declare const PopoverBackdrop: React.ForwardRefExoticComponent<PopoverBackdropProps & React.RefAttributes<HTMLDivElement>>; export interface PopoverBackdropState { /** * Whether the popover is currently open. */ open: boolean; transitionStatus: TransitionStatus; } export interface PopoverBackdropProps extends BaseUIComponentProps<'div', PopoverBackdrop.State> {} export declare namespace PopoverBackdrop { type State = PopoverBackdropState; type Props = PopoverBackdropProps; }