@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.
34 lines • 1.03 kB
TypeScript
import * as React from 'react';
import { BaseUIComponentProps, NonNativeButtonProps } from "../../utils/types.js";
/**
* A menu item that opens a submenu.
* Renders a `<div>` element.
*
* Documentation: [Base UI Menu](https://base-ui.com/react/components/menu)
*/
export declare const MenuSubmenuTrigger: React.ForwardRefExoticComponent<MenuSubmenuTrigger.Props & React.RefAttributes<Element>>;
export declare namespace MenuSubmenuTrigger {
interface Props extends NonNativeButtonProps, BaseUIComponentProps<'div', State> {
children?: React.ReactNode;
onClick?: React.MouseEventHandler<HTMLElement>;
/**
* Overrides the text label to use when the item is matched during keyboard text navigation.
*/
label?: string;
/**
* @ignore
*/
id?: string;
}
interface State {
/**
* Whether the component should ignore user interaction.
*/
disabled: boolean;
highlighted: boolean;
/**
* Whether the menu is currently open.
*/
open: boolean;
}
}