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.

27 lines (26 loc) 791 B
import * as React from 'react'; import { BaseUIComponentProps } 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) */ declare const MenuTrigger: React.ForwardRefExoticComponent<MenuTrigger.Props & React.RefAttributes<HTMLElement>>; declare namespace MenuTrigger { interface Props extends 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; }; } export { MenuTrigger };