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 MenubarPassThroughOptionType = MenubarPassThroughAttributes
export interface MenubarPassThroughMethodOptions {
props: MenubarProps;
state: MenubarState;
options: MenubarOptions;
}
/**
@ -135,6 +136,22 @@ export interface MenubarState {
activeItemPath: MenubarFocusedItemInfo[];
}
/**
* Defines current options in Menubar component.
*/
export interface MenubarOptions {
/**
* 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 Menubar component.
*/