UNPKG

@konstructio/ui

Version:

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

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