@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.
30 lines • 1.06 kB
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
import type { TransitionStatus } from "../../utils/useTransitionStatus.js";
/**
* A positioning container for the drawer popup that can be made scrollable.
* Renders a `<div>` element.
*
* Documentation: [Base UI Drawer](https://base-ui.com/react/components/drawer)
*/
export declare const DrawerViewport: React.ForwardRefExoticComponent<Omit<DrawerViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export interface DrawerViewportState {
/**
* Whether the drawer is currently open.
*/
open: boolean;
transitionStatus: TransitionStatus;
/**
* Whether the drawer is nested within another drawer.
*/
nested: boolean;
/**
* Whether the drawer has nested drawers open.
*/
nestedDialogOpen: boolean;
}
export interface DrawerViewportProps extends BaseUIComponentProps<'div', DrawerViewport.State> {}
export declare namespace DrawerViewport {
type Props = DrawerViewportProps;
type State = DrawerViewportState;
}