UNPKG

@arche-mc2/arche-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

24 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var classnames = require("classnames"); var withTheme_1 = require("../../../Common/theming/withTheme"); var theming_1 = require("../../../Common/theming"); var styles_1 = require("./styles"); var UpBadge = function (props) { var text = props.text, className = props.className, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, children = props.children; return (React.createElement("div", { className: classnames(styles_1.getStyle(props), 'up-badge', className), onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, text, children)); }; exports.UpBadge = UpBadge; UpBadge.defaultProps = { text: '', color: '#FFF', background: '#000', theme: theming_1.default, rounded: false, intent: null }; exports.default = withTheme_1.default(UpBadge); //# sourceMappingURL=UpBadge.js.map