@base-ui/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.
28 lines • 978 B
TypeScript
import * as React from 'react';
import { type TransitionStatus } from "../../utils/useTransitionStatus.js";
import { type BaseUIComponentProps } from "../../utils/types.js";
/**
* An overlay displayed beneath the popup.
* Renders a `<div>` element.
*
* Documentation: [Base UI Drawer](https://base-ui.com/react/components/drawer)
*/
export declare const DrawerBackdrop: React.ForwardRefExoticComponent<Omit<DrawerBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export interface DrawerBackdropProps extends BaseUIComponentProps<'div', DrawerBackdrop.State> {
/**
* Whether the backdrop is forced to render even when nested.
* @default false
*/
forceRender?: boolean | undefined;
}
export interface DrawerBackdropState {
/**
* Whether the drawer is currently open.
*/
open: boolean;
transitionStatus: TransitionStatus;
}
export declare namespace DrawerBackdrop {
type Props = DrawerBackdropProps;
type State = DrawerBackdropState;
}