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 DockPassThroughOptionType = DockPassThroughAttributes | ((op
export interface DockPassThroughMethodOptions {
props: DockProps;
state: DockState;
context: DockContext;
}
/**
@ -88,6 +89,17 @@ export interface DockState {
focusedOptionIndex: number;
}
/**
* Defines current options in Dock component.
*/
export interface DockContext {
/**
* Current active state of menuitem as a boolean.
* @defaultValue false
*/
active: boolean;
}
/**
* Defines tooltip options
*/