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.

23 lines 894 B
import * as React from 'react'; import { FloatingPortalLite } from "../../utils/FloatingPortalLite.js"; /** * A portal element that moves the popup to a different part of the DOM. * By default, the portal element is appended to `<body>`. * Renders a `<div>` element. * * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card) */ export declare const PreviewCardPortal: React.ForwardRefExoticComponent<PreviewCardPortalProps & React.RefAttributes<HTMLDivElement>>; export declare namespace PreviewCardPortal { interface State {} } export interface PreviewCardPortalProps extends FloatingPortalLite.Props<PreviewCardPortal.State> { /** * Whether to keep the portal mounted in the DOM while the popup is hidden. * @default false */ keepMounted?: boolean; } export declare namespace PreviewCardPortal { type Props = PreviewCardPortalProps; }