Home Reference Source
public class | source

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:

NameTypeAttributeDescription
tabIndex number
  • optional

Sets tabindex attribute on the primary element tag to modify the tab order.

category string
  • optional
  • default: 'primary'

Specifies if the button should be styled as a 'primary' or 'secondary' button.

imageSrc string
  • optional
  • default: 'Button'

Specifies if an image should be displayed in place of a label.

label string
  • optional
  • default: 'Button'

Specifies a text label to appear on the button.

onClick function
  • optional

Optional function to be called each time the button is clicked.