baseui
Version:
A React Component library implementing the Base design language
28 lines (27 loc) • 888 B
TypeScript
import * as React from 'react';
import type { StatefulContainerProps, StateReducerFn } from './types';
declare const MenuStatefulContainer: {
(props: StatefulContainerProps): React.JSX.Element;
defaultProps: {
initialState: {
highlightedIndex: number;
isFocused: boolean;
};
typeAhead: boolean;
keyboardControlNode: {
current: null | HTMLElement;
};
stateReducer: StateReducerFn;
onItemSelect: () => void;
getRequiredItemProps: () => {};
children: () => any;
addMenuToNesting: () => void;
removeMenuFromNesting: () => void;
getParentMenu: () => void;
getChildMenu: () => void;
nestedMenuHoverIndex: number;
isNestedMenuVisible: () => boolean;
forceHighlight: boolean;
};
};
export default MenuStatefulContainer;