UNPKG

@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.

22 lines 891 B
import * as React from 'react'; import { FloatingPortal } from "../../floating-ui-react/index.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 Combobox](https://base-ui.com/react/components/combobox) */ export declare const ComboboxPortal: React.ForwardRefExoticComponent<Omit<ComboboxPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>; export interface ComboboxPortalState {} export interface ComboboxPortalProps extends FloatingPortal.Props<ComboboxPortalState> { /** * Whether to keep the portal mounted in the DOM while the popup is hidden. * @default false */ keepMounted?: boolean | undefined; } export declare namespace ComboboxPortal { type State = ComboboxPortalState; type Props = ComboboxPortalProps; }