`).
* @default false
*/
nativeButton: boolean;
/**
* Additional data specific to the item type.
*/
itemMetadata: UseMenuItemMetadata;
/**
* The node id of the menu positioner.
*/
nodeId: string | undefined;
/**
* The menu store.
*/
store: MenuStore
;
/**
* Whether a typeahead session is in progress.
* @default store.context.typingRef
*/
typingRef?: React.RefObject | undefined;
}
export type UseMenuItemMetadata = typeof REGULAR_ITEM | {
type: 'submenu-trigger';
setActive: () => void;
};
export interface UseMenuItemReturnValue {
/**
* Resolver for the root slot's props.
* @param externalProps event handlers for the root slot
* @returns props that should be spread on the root slot
*/
getItemProps: (externalProps?: HTMLProps) => HTMLProps;
/**
* The ref to the component's root DOM element.
*/
itemRef: React.RefCallback | null;
}
export interface UseMenuItemState {}