@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.
30 lines • 1.04 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 dialog popup that can be made scrollable.
* Renders a `<div>` element.
*
* Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)
*/
export declare const DialogViewport: React.ForwardRefExoticComponent<DialogViewportProps & React.RefAttributes<HTMLDivElement>>;
export interface DialogViewportState {
/**
* Whether the dialog is currently open.
*/
open: boolean;
transitionStatus: TransitionStatus;
/**
* Whether the dialog is nested within another dialog.
*/
nested: boolean;
/**
* Whether the dialog has nested dialogs open.
*/
nestedDialogOpen: boolean;
}
export interface DialogViewportProps extends BaseUIComponentProps<'div', DialogViewportState> {}
export declare namespace DialogViewport {
type State = DialogViewportState;
type Props = DialogViewportProps;
}