UNPKG

@mankindui/core

Version:

- a react component library - you can see how @mankindui/core can be used via examples: [usage examples](https://github.com/clarklindev/mankindui-test)

19 lines (18 loc) 759 B
import { j as n } from "../../_virtual/jsx-runtime.js"; import { cva as o } from "../../node_modules/class-variance-authority/dist/index.js"; const i = o(["inline-block px-2 py-1 bg-blue-500 rounded-xl text-xs uppercase"], { variants: { intent: { contained: "bg-gray-300 text-gray-700 border-gray-300", outline: "light:text-black dark:text-gray-300 border border-gray-800 dark:border-white bg-transparent" } }, defaultVariants: { intent: "outline" } }), e = ({ className: t, children: a, intent: r }) => /* @__PURE__ */ n.jsx("span", { "data-component": e.displayName, className: [i({ intent: r, className: t }), t].join(" "), children: a }); e.displayName = "Badge"; export { e as Badge }; //# sourceMappingURL=index.js.map