UNPKG

@kbfront/kb-ui

Version:

KB React UI Library

20 lines 1 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EBadgeType = void 0; var react_1 = __importDefault(require("react")); require("./index.scss"); var index_1 = require("../../enum/index"); var EBadgeType; (function (EBadgeType) { EBadgeType["PILL"] = "pill"; EBadgeType["SQUARE"] = "square"; })(EBadgeType = exports.EBadgeType || (exports.EBadgeType = {})); var Badge = function (_a) { var children = _a.children, _b = _a.type, type = _b === void 0 ? EBadgeType.SQUARE : _b, _c = _a.color, color = _c === void 0 ? index_1.EColor.SECONDARY : _c, _d = _a.className, className = _d === void 0 ? '' : _d; return react_1.default.createElement("span", { className: "kb-badge " + (type && "kb-badge-" + type) + " color-" + color + " " + className }, children); }; exports.default = Badge; //# sourceMappingURL=index.js.map