Refactor #3922 - For SelectButton

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-09 11:43:08 +03:00
parent cae74f5c97
commit 515ae35fc5
2 changed files with 27 additions and 2 deletions

View file

@ -18,6 +18,7 @@ export declare type SelectButtonPassThroughOptionType = SelectButtonPassThroughA
export interface SelectButtonPassThroughMethodOptions {
props: SelectButtonProps;
state: SelectButtonState;
context: SelectButtonContext;
}
/**
@ -71,6 +72,22 @@ export interface SelectButtonState {
focusedIndex: number;
}
/**
* Defines current options in SelectButton component.
*/
export interface SelectButtonContext {
/**
* Current active state of the item as a boolean.
* @defaultValue false
*/
active: boolean;
/**
* Current focused state of item as a boolean.
* @defaultValue false
*/
focused: boolean;
}
/**
* Defines valid properties in SelectButton component.
*/