UNPKG

@trellixio/roaster-coffee

Version:
39 lines (33 loc) 961 B
'use strict'; var React = require('react'); var index = require('../../utils/classNames/index.js'); require('@floating-ui/react'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { for (var k in e) { n[k] = e[k]; } } n.default = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React); const Button = React__namespace.forwardRef((props, ref) => { const { children, submit, variant = "primary", color, disabled, className, style, onClick, isIconButton } = props; return /* @__PURE__ */ React__namespace.createElement( "button", { ref, style, onClick, disabled, type: submit ? "submit" : "button", className: index.classNames("button", variant, color, { disabled, icon: isIconButton }, className) }, children ); }); Button.displayName = "Button"; exports.Button = Button; //# sourceMappingURL=Button.js.map