'use strict';

var clsx = require('clsx');
var React = require('react');
var InputGroup = require('./InputGroup.js');
var _common = require('./_common.js');
var jsxRuntime = require('react/jsx-runtime');

const ButtonInput = /*#__PURE__*/React.forwardRef(function ButtonInput({
  size = 'md',
  className,
  style,
  ...restProps
}, ref) {
  const inputPaddings = InputGroup.useInputPaddings();
  return /*#__PURE__*/jsxRuntime.jsx("button", {
    ref: ref,
    type: "button",
    className: clsx.clsx(className, _common.inputClassNameBase({
      size
    }), 'np-button-input')
    // eslint-disable-next-line react/forbid-dom-props
    ,
    style: {
      ...inputPaddings,
      ...style
    },
    ...restProps
  });
});

exports.ButtonInput = ButtonInput;
//# sourceMappingURL=_ButtonInput.js.map
