UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

29 lines (28 loc) 736 B
import { t as e } from "../../dist-CMPkuWNy.js"; import { t as n } from "../../utils-COaoD3PI.js"; import { tagVariants as o } from "./Tag.variants.js"; import { jsx as a, jsxs as c } from "react/jsx-runtime"; var u = ({ label: i, color: s, rightIcon: t, leftIcon: r, className: l, "data-value": m }) => /* @__PURE__ */ c("div", { className: n(o({ color: s, className: l })), "data-value": m, children: [ r ? /* @__PURE__ */ a(e, { className: "text-inherit", children: r }) : null, /* @__PURE__ */ a("span", { className: "text-inherit", children: i }), t ? /* @__PURE__ */ a(e, { className: "text-inherit", children: t }) : null ] }); export { u as Tag };