UNPKG

kenrey-component

Version:

Components for kendallrey

10 lines 604 B
import { __assign, __rest } from "tslib"; import React from 'react'; import styles from '../../index.module.css'; var Button = function (props) { var _a; var shade = props.shade, variant = props.variant, cleanProps = __rest(props, ["shade", "variant"]); return (React.createElement("button", __assign({}, cleanProps, { className: "".concat(styles['btn'], " ").concat((_a = cleanProps.className) !== null && _a !== void 0 ? _a : '', " ").concat(variant ? styles["".concat(variant).concat(shade ? "-".concat(shade) : '')] : '') }))); }; export default Button; //# sourceMappingURL=button.js.map