Refactor #3965 - For Avatar

This commit is contained in:
Tuğçe Küçükoğlu 2023-06-23 13:05:40 +03:00
parent 810894df5a
commit 386c7d8b84
3 changed files with 26 additions and 5 deletions

View file

@ -17,6 +17,7 @@ export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes |
*/
export interface ButtonPassThroughMethodOptions {
props: ButtonProps;
context: ButtonContext;
}
/**
@ -149,6 +150,17 @@ export interface ButtonProps extends ButtonHTMLAttributes {
unstyled?: boolean;
}
/**
* Defines current options in Button component.
*/
export interface ButtonContext {
/**
* Current disabled state of the element as a boolean.
* @defaultValue false
*/
disabled: boolean;
}
/**
* Defines valid slots in Button component.
*/