Module: Button

MDCButton component implemented by react component.

Parameters:
Name Type Description
props Object

Attributes other than followings are passed to the button element of React as is.

Properties
Name Type Attributes Description
variation string <optional>

The variation of the button. Supported variations are 'text'(default), 'outlined' and 'contained'.

label string

The label text of the button.

className string <optional>

The class name that is added to the root element.

disabled boolean <optional>

Specifies true if you want to disable the button. Default to false.

icon string <optional>

The inner text of the icon element if adding the icon. The component renders an icon on the button if either this attribute or props.iconClassName is present.

iconClassName string <optional>

The class name that is added to the icon element if adding the icon. The component renders an icon on the button if either this attribute or props.icon is present.

disablesMdcInstance boolean <optional>

Specifies true if you do not want to instantiate MDC Component. Default to false.

supportsTouch boolean <optional>

Whether to support touch in Material Design specification. Material Design spec advises that touch targets should be at least 48 x 48 px.

mdcRippleRef React.MutableRefObject <optional>

MutableRefObject which bind an MDCRipple instance to. The instance is not bind if props.disablesMdcInstance is true.

Source:
Returns:
Type
DetailedReactHTMLElement