@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
TypeScript
import * as React from 'react';
import { BaseUIComponentProps } from "../../utils/types.js";
/**
* A viewport for displaying content transitions.
* This component is only required if one popup can be opened by multiple triggers, its content change based on the trigger
* and switching between them is animated.
* Renders a `<div>` element.
*
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
*/
export declare const PopoverViewport: React.ForwardRefExoticComponent<PopoverViewport.Props & React.RefAttributes<HTMLDivElement>>;
export declare namespace PopoverViewport {
interface Props extends BaseUIComponentProps<'div', State> {
/**
* The content to render inside the transition container.
*/
children?: React.ReactNode;
}
interface State {
activationDirection?: string;
}
}