Module: Tab

MDCTab 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
label string

The text label on the tab.

className string <optional>

The class name that is added to the root element.

active boolean <optional>

Specifies true if the tab is active, false otherwise. Default to false.

icon string <optional>

The inner text of the icon element if adding the icon. The component renders an icon on the tab 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 tab if either this attribute or props.icon is present.

mdcTabRef React.MutableRefObject <optional>

MutableRefObject which bind an MDCTab instance to.

Source:
Returns:
Type
DetailedReactHTMLElement