import React from 'react';
import classNames from 'classnames';
export const SoftFormLabel = ({ type = 'label', isFocused, isInvalid, children, className, ...rest }) => {
    const classes = classNames('softFormLabel', className, {
        'softFormLabel-isFocused': isFocused,
        'softFormLabel-isInvalid': isInvalid,
    });
    if (type === 'legend') {
        return (React.createElement("legend", Object.assign({ className: classes }, rest), children));
    }
    else {
        return (React.createElement("label", Object.assign({ className: classes }, rest), children));
    }
};
//# sourceMappingURL=SoftFormLabel.js.map