@anoki/fse-ui
Version:
FSE UI components library
37 lines (36 loc) • 791 B
JavaScript
import { j as s } from "./index.es244.js";
import './styles/typography.css';import './components/ui/link/Link.css';/* empty css */
/* empty css */
import { clsx as m } from "./index.es246.js";
function x({
title: o,
src: e,
decoration: i = "",
transform: t = "none",
icon: n,
asLink: a = "a",
external: r = !1
}) {
const l = a || "a";
return /* @__PURE__ */ s.jsxs(
l,
{
className: m(
"link link-sans-bold-sm",
i,
`text-${t}`
),
href: e,
target: r ? "_blank" : "",
rel: r ? "noopener noreferrer" : "",
children: [
o,
n && /* @__PURE__ */ s.jsx(n, { class: "link-icon", size: "md" })
]
}
);
}
export {
x as Link
};
//# sourceMappingURL=index.es99.js.map