UNPKG

@konstructio/ui

Version:

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

25 lines (24 loc) 683 B
import { t as u } from "../../dist-CMPkuWNy.js"; import { t as l } from "../../utils-COaoD3PI.js"; import { buttonVariants as c } from "./Button.variants.js"; import { forwardRef as x } from "react"; import { jsx as B } from "react/jsx-runtime"; var N = x(({ appearance: o, asChild: r = !1, className: a, disabled: t = !1, shape: m, size: f, theme: s, variant: e, version: n, ...p }, i) => /* @__PURE__ */ B(r ? u : "button", { ref: i, "data-theme": s, className: l(c({ appearance: o, className: a, disabled: t, shape: m, size: f, variant: e, version: n })), disabled: t, ...p })); N.displayName = "KonstructButton"; export { N as Button };