Refactor #3889 - For SpeedDial

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-28 12:45:36 +03:00
parent 0377815bf2
commit ccc1d4f4e0
2 changed files with 35 additions and 4 deletions

View file

@ -19,6 +19,7 @@ export declare type SpeedDialPassThroughOptionType = SpeedDialPassThroughAttribu
export interface SpeedDialPassThroughMethodOptions {
props: SpeedDialProps;
state: SpeedDialState;
context: SpeedDialContext;
}
/**
@ -97,6 +98,17 @@ export interface SpeedDialState {
focusedOptionIndex: number;
}
/**
* Defines current options in SpeedDial component.
*/
export interface SpeedDialContext {
/**
* Current active state of menuitem as a boolean.
* @defaultValue false
*/
active: boolean;
}
/**
* Defines tooltip options.
* @see {@link SpeedDialProps.tooltipOptions}