@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.
25 lines • 770 B
TypeScript
import * as React from 'react';
import { BaseUIComponentProps, NativeButtonProps } from "../../utils/types.js";
/**
* A button that opens the menu.
* Renders a `<button>` element.
*
* Documentation: [Base UI Menu](https://base-ui.com/react/components/menu)
*/
export declare const MenuTrigger: React.ForwardRefExoticComponent<MenuTrigger.Props & React.RefAttributes<HTMLElement>>;
export declare namespace MenuTrigger {
interface Props extends NativeButtonProps, BaseUIComponentProps<'button', State> {
children?: React.ReactNode;
/**
* Whether the component should ignore user interaction.
* @default false
*/
disabled?: boolean;
}
type State = {
/**
* Whether the menu is currently open.
*/
open: boolean;
};
}