import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export class SoftTab extends Component {
    render() {
        let { isSelected, onClick, children, className, disabled, ...rest } = this.props;
        const classes = classNames('softTab', className, {
            'softTab-isSelected': isSelected,
            'softTab-isDisabled': disabled,
        });
        return (React.createElement("button", Object.assign({ role: "tab", "aria-selected": !!isSelected, type: "button", className: classes, onClick: onClick, disabled: disabled }, rest),
            React.createElement("span", { className: "softTab__content" }, children)));
    }
}
SoftTab.defaultProps = {
    isSelected: false,
    disabled: false,
};
SoftTab.propTypes = {
    isSelected: PropTypes.bool,
    onClick: PropTypes.func.isRequired,
    children: PropTypes.node,
    className: PropTypes.string,
    disabled: PropTypes.bool,
};
//# sourceMappingURL=SoftTab.js.map