@kenreymozo/kenrey-component
Version:
Components for kendallrey
15 lines • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var index_module_css_1 = tslib_1.__importDefault(require("../../index.module.css"));
var Button = function (props) {
var _a;
var variant = props.variant, size = props.size, lIcon = props.lIcon, rIcon = props.rIcon, children = props.children, isDestructive = props.isDestructive, cleanProps = tslib_1.__rest(props, ["variant", "size", "lIcon", "rIcon", "children", "isDestructive"]);
return (react_1.default.createElement("button", tslib_1.__assign({}, cleanProps, { className: "".concat(index_module_css_1.default['btn'], " ").concat((_a = cleanProps.className) !== null && _a !== void 0 ? _a : '', " ").concat(index_module_css_1.default["btn-".concat(variant !== null && variant !== void 0 ? variant : 'primary').concat(isDestructive ? '-destructive' : '')], " ").concat(index_module_css_1.default["btn-".concat(size !== null && size !== void 0 ? size : 'md')]) }),
lIcon,
children,
rIcon));
};
exports.default = Button;
//# sourceMappingURL=button.js.map