`).
* @default false
*/
nativeButton: boolean;
/**
* Additional data specific to the item type.
*/
itemMetadata: useMenuItem.Metadata;
/**
* The node id of the menu positioner.
*/
nodeId: string | undefined;
/**
* The menu store.
*/
store: MenuStore
;
}
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 declare namespace useMenuItem {
type Parameters = UseMenuItemParameters;
type Metadata = UseMenuItemMetadata;
type ReturnValue = UseMenuItemReturnValue;
}