mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - For Avatar
This commit is contained in:
parent
810894df5a
commit
386c7d8b84
3 changed files with 26 additions and 5 deletions
12
components/lib/button/Button.d.ts
vendored
12
components/lib/button/Button.d.ts
vendored
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue