Refactor #4196 - For Steps

This commit is contained in:
Tuğçe Küçükoğlu 2023-07-24 13:57:49 +03:00
parent e01a3f1f36
commit 974a963218
3 changed files with 38 additions and 8 deletions

View file

@ -20,6 +20,7 @@ export declare type StepsPassThroughOptionType = StepsPassThroughAttributes | ((
export interface StepsPassThroughMethodOptions {
instance: any;
props: StepsProps;
context: StepsContext;
}
/**
@ -65,6 +66,26 @@ export interface StepsPassThroughAttributes {
[key: string]: any;
}
/**
* Defines current options in Steps component.
*/
export interface StepsContext {
/**
* Index of the menuitem.
*/
index: number;
/**
* Current active state of menuitem as a boolean.
* @defaultValue false
*/
active: boolean;
/**
* Current disabled state of menuitem as a boolean.
* @defaultValue false
*/
disabled: boolean;
}
/**
* Defines valid properties in Steps component.
*/