pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
/// <reference types="react" />
|
||||
import { ListAction, ListActionContext } from '../useList';
|
||||
import { ActionWithContext } from '../utils/useControllableReducer.types';
|
||||
import { MenuInternalState } from './useMenu.types';
|
||||
export type MenuActionContext = ListActionContext<string> & {
|
||||
listboxRef: React.RefObject<HTMLElement>;
|
||||
};
|
||||
export declare function menuReducer(state: MenuInternalState, action: ActionWithContext<ListAction<string>, MenuActionContext>): MenuInternalState | {
|
||||
open: boolean;
|
||||
highlightedValue: string | null;
|
||||
selectedValues: string[];
|
||||
};
|
||||
Reference in new issue
Block a user