How to use the reactstrap.Button function in reactstrap

To help you get started, we’ve selected a few reactstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jhipster / react-jhipster / lib / src / component / metrics / jvmThreads.js View on Github external
" (",
                threadStats.threadDumpWaiting,
                ")"),
            React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpWaiting, max: threadStats.threadDumpAll, color: "warning" },
                React.createElement("span", null,
                    React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpWaiting * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
            React.createElement("p", null,
                React.createElement("span", null, "Blocked"),
                " (",
                threadStats.threadDumpBlocked,
                ")"),
            React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpBlocked, max: threadStats.threadDumpAll, color: "success" },
                React.createElement("span", null,
                    React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpBlocked * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
            this.renderModal(),
            React.createElement(reactstrap_1.Button, { color: "primary", size: "sm", className: "hand", onClick: this.openModal }, "Expand")));
    };
    return JvmThreads;
github jhipster / react-jhipster / lib / src / component / metrics / threads-modal.js View on Github external
React.createElement("th", null, "Blocked Time"),
                                        React.createElement("th", null, "Blocked Count"),
                                        React.createElement("th", null, "Waited Time"),
                                        React.createElement("th", null, "Waited Count"),
                                        React.createElement("th", null, "Lock Name"))),
                                React.createElement("tbody", null,
                                    React.createElement("tr", { key: threadDumpInfo.lockName },
                                        React.createElement("td", null, threadDumpInfo.blockedTime),
                                        React.createElement("td", null, threadDumpInfo.blockedCount),
                                        React.createElement("td", null, threadDumpInfo.waitedTime),
                                        React.createElement("td", null, threadDumpInfo.waitedCount),
                                        React.createElement("td", { className: "thread-dump-modal-lock", title: threadDumpInfo.lockName },
                                            React.createElement("code", null, threadDumpInfo.lockName)))))))); })
                    : null)),
            React.createElement(reactstrap_1.ModalFooter, null,
                React.createElement(reactstrap_1.Button, { color: "primary", onClick: handleClose }, "Close"))));
    };
    return ThreadsModal;
github italia / design-react-kit / dist / design-react-kit.cjs.js View on Github external
var Button = function Button(_ref) {
  var icon = _ref.icon,
      className = _ref.className,
      attributes = _objectWithoutPropertiesLoose(_ref, ["icon", "className"]);

  var classes = classnames(className, {
    'btn-icon': icon
  });
  return React__default.createElement(reactstrap.Button, _extends({
    className: classes
  }, attributes));
};
github italia / design-react-kit / dist / design-react-kit.cjs.js View on Github external
};
var defaultProps$3 = {
  color: 'secondary',
  pill: false,
  tag: 'span'
};

var Badge = function Badge(props) {
  var children = props.children;
  return React__default.createElement(reactstrap.Badge, props, children);
};

Badge.propTypes = propTypes$3;
Badge.defaultProps = defaultProps$3;

var propTypes$4 = _extends({}, reactstrap.Button.propTypes, {
  icon: PropTypes.bool
});

var defaultProps$4 = _extends({}, reactstrap.Button.defaultProps, {
  icon: false
});

var Button = function Button(_ref) {
  var icon = _ref.icon,
      className = _ref.className,
      attributes = _objectWithoutPropertiesLoose(_ref, ["icon", "className"]);

  var classes = classnames(className, {
    'btn-icon': icon
  });
  return React__default.createElement(reactstrap.Button, _extends({