diff --git a/components/lib/speeddial/SpeedDial.d.ts b/components/lib/speeddial/SpeedDial.d.ts index f67077ec5..9c20fca4e 100644 --- a/components/lib/speeddial/SpeedDial.d.ts +++ b/components/lib/speeddial/SpeedDial.d.ts @@ -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} diff --git a/components/lib/speeddial/SpeedDial.vue b/components/lib/speeddial/SpeedDial.vue index 3f902c6b0..cf272984d 100644 --- a/components/lib/speeddial/SpeedDial.vue +++ b/components/lib/speeddial/SpeedDial.vue @@ -24,7 +24,16 @@