Button
Extends:
react~Component → Button
Button component that displays a button that will call a function when clicked.
Static Member Summary
Static Public Members | ||
public static |
propTypes: {"onClick": *, "ariaLabel": *, "label": *, "imageSrc": *, "category": *, "disabled": *, "hidden": *, "tabIndex": *} PropTypes |
Static Public Members
public static propTypes: {"onClick": *, "ariaLabel": *, "label": *, "imageSrc": *, "category": *, "disabled": *, "hidden": *, "tabIndex": *} source
PropTypes
Properties:
Name | Type | Attribute | Description |
tabIndex | number |
|
Sets tabindex attribute on the primary element tag to modify the tab order. |
category | string |
|
Specifies if the button should be styled as a 'primary' or 'secondary' button. |
imageSrc | string |
|
Specifies if an image should be displayed in place of a label. |
label | string |
|
Specifies a text label to appear on the button. |
onClick | function |
|
Optional function to be called each time the button is clicked. |