UNPKG

@konstructio/ui

Version:

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

43 lines (42 loc) 821 B
import { jsx as u } from "react/jsx-runtime"; import { forwardRef as c } from "react"; import { S as l } from "../../index-B5MIi2tR.js"; import { cn as x } from "../../utils/index.js"; import { buttonVariants as B } from "./Button.variants.js"; const C = c( ({ appearance: t, asChild: r = !1, className: m, disabled: o = !1, shape: a, size: f, theme: n, variant: p, version: s, ...e }, i) => /* @__PURE__ */ u( r ? l : "button", { ref: i, "data-theme": n, className: x( B({ appearance: t, className: m, disabled: o, shape: a, size: f, variant: p, version: s }) ), disabled: o, ...e } ) ); C.displayName = "Button"; export { C as Button };