@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
38 lines (37 loc) • 818 B
JavaScript
import { jsx as m } from "react/jsx-runtime";
import { forwardRef as c } from "react";
import { cn as s } from "../../utils/index.js";
import { cardVariants as f, cardBaseVariants as p } from "./Card.variants.js";
const l = c(
({ className: d, theme: o, isActive: a, canHover: r, wrapperClassName: t, ...e }, i) => /* @__PURE__ */ m(
"div",
{
"data-theme": o,
className: s(
p({
canHover: r,
className: t,
isActive: a
})
),
children: /* @__PURE__ */ m(
"div",
{
ref: i,
className: s(
f({
className: d,
isActive: a,
canHover: r
})
),
...e
}
)
}
)
);
l.displayName = "Card";
export {
l as Card
};