UNPKG

@kenreymozo/kenrey-component

Version:

Components for kendallrey

13 lines 932 B
import { __assign, __rest } from "tslib"; import React from 'react'; import styles from '../../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 = __rest(props, ["variant", "size", "lIcon", "rIcon", "children", "isDestructive"]); return (React.createElement("button", __assign({}, cleanProps, { className: "".concat(styles['btn'], " ").concat((_a = cleanProps.className) !== null && _a !== void 0 ? _a : '', " ").concat(styles["btn-".concat(variant !== null && variant !== void 0 ? variant : 'primary').concat(isDestructive ? '-destructive' : '')], " ").concat(styles["btn-".concat(size !== null && size !== void 0 ? size : 'md')]) }), lIcon, children, rIcon)); }; export default Button; //# sourceMappingURL=button.js.map