Refactor #3907 - Options added

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-27 17:16:09 +03:00
parent bd0152fdef
commit 059f7d7f68
10 changed files with 227 additions and 56 deletions

View file

@ -19,6 +19,7 @@ export declare type MegaMenuPassThroughOptionType = MegaMenuPassThroughAttribute
export interface MegaMenuPassThroughMethodOptions {
props: MegaMenuProps;
state: MegaMenuState;
options: MegaMenuOptions;
}
/**
@ -138,6 +139,22 @@ export interface MegaMenuState {
activeItem: MenuItem;
}
/**
* Defines current options in MegaMenu component.
*/
export interface MegaMenuOptions {
/**
* Current active state of menuitem as a boolean.
* @defaultValue false
*/
active: boolean;
/**
* Current focused state of menuitem as a boolean.
* @defaultValue false
*/
focused: boolean;
}
/**
* Defines valid properties in MegaMenu component.
*/