Home > @tridion-sites/extensions > ButtonProps
Signature:
export interface ButtonProps extends RefAttributes<HTMLElement>
Extends: RefAttributes<HTMLElement
Property | Modifiers | Type | Description |
---|---|---|---|
isDisabled? | boolean | (Optional) If true , the element is displayed in a disabled state. |
|
isProcessing? | boolean | (Optional) If true , the element shows a processing indicator. |
|
label? | string | (Optional) Text that is displayed inside button, i.e., the button label. If omitted, you must provide a tooltip . |
|
onClick | (event: MouseEvent) => void | Callback executed when the button is clicked. | |
tooltip? | string | (Optional) A tooltip text that is displayed when the element is hovered. Can be omitted if label is specified. Required if there is no label specified. For accessibility purposes, the tooltip is only displayed when it differs from the label. |