@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
43 lines (42 loc) • 830 B
JavaScript
import { jsx as u } from "react/jsx-runtime";
import { forwardRef as c } from "react";
import { S as l } from "../../index-BtQfgaSF.js";
import { cn as x } from "../../utils/index.js";
import { buttonVariants as B } from "./Button.variants.js";
const C = c(
({
appearance: o,
asChild: r = !1,
className: m,
disabled: t = !1,
shape: a,
size: n,
theme: s,
variant: f,
version: p,
...e
}, i) => /* @__PURE__ */ u(
r ? l : "button",
{
ref: i,
"data-theme": s,
className: x(
B({
appearance: o,
className: m,
disabled: t,
shape: a,
size: n,
variant: f,
version: p
})
),
disabled: t,
...e
}
)
);
C.displayName = "KonstructButton";
export {
C as Button
};