Refactor #3907 - options have changed as context

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-28 13:15:44 +03:00
parent 6005b67be7
commit 5aab120fe5
16 changed files with 75 additions and 24 deletions

View file

@ -19,6 +19,7 @@ export declare type MenuPassThroughOptionType = MenuPassThroughAttributes | ((op
export interface MenuPassThroughMethodOptions {
props: MenuProps;
state: MenuState;
context: MenuContext;
}
/**
@ -107,6 +108,17 @@ export interface MenuState {
selectedOptionIndex: number;
}
/**
* Defines current options in Menu component.
*/
export interface MenuContext {
/**
* Current focused state of menuitem as a boolean.
* @defaultValue false
*/
focused: boolean;
}
/**
* Defines valid properties in Menu component.
*/