UNPKG

@konstructio/ui

Version:

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

34 lines (33 loc) 664 B
import { jsx as c } from "react/jsx-runtime"; import { cn as f } from "../../utils/index.js"; import { typographyVariants as h } from "./Typography.variants.js"; import { S as l } from "../../index-B5MIi2tR.js"; const d = ({ className: p, theme: m, children: s, variant: o, component: e, asChild: r = !1, ...t }) => { const y = r ? l : e ?? (o != null && o.includes("h") ? o : "p"); return /* @__PURE__ */ c( y, { "data-theme": m, className: f( h({ className: p, variant: o }) ), ...t, children: s } ); }; d.displayName = "Typography"; export { d as Typography };