pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Stabilizes the ListContext value for the MenuItem component, so it doesn't change when sibling items update.
|
||||
*
|
||||
* @param id The id of the MenuItem. If undefined, it will be generated with useId.
|
||||
* @returns The stable ListContext value and the id of the MenuItem.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Menu](https://mui.com/base-ui/react-menu/#hooks)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [useMenuItemContextStabilizer API](https://mui.com/base-ui/react-menu/hooks-api/#use-menu-item-context-stabilizer)
|
||||
*/
|
||||
export declare function useMenuItemContextStabilizer(id: string | undefined): {
|
||||
contextValue: {
|
||||
dispatch: (action: import("../useList").ListAction<string>) => void;
|
||||
getItemState: (itemValue: string) => {
|
||||
highlighted: boolean;
|
||||
selected: boolean;
|
||||
focusable: boolean;
|
||||
};
|
||||
};
|
||||
id: string | undefined;
|
||||
};
|
||||
Reference in new issue
Block a user