@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.
21 lines (20 loc) • 643 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from '../../utils/types.js';
/**
* A button that opens the popover.
* Renders a `<button>` element.
*
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
*/
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverTrigger.Props, "ref"> & React.RefAttributes<any>>;
declare namespace PopoverTrigger {
interface State {
/**
* Whether the popover is currently open.
*/
open: boolean;
}
interface Props extends BaseUIComponentProps<any, State> {
}
}
export { PopoverTrigger };