@anoki/fse-ui
Version:
FSE UI components library
41 lines (40 loc) • 1.31 kB
JavaScript
import { j as e } from "./index.es278.js";
import { Spid as a } from "./index.es234.js";
import './components/ui/EntryButton/EntryButton.css';/* empty css */
import { Row as l } from "./index.es219.js";
const h = ({
href: t,
asLink: o = "a",
showIcon: s = !1,
icon: r,
ariaLabel: n = "Accedi con SPID",
children: i
}) => {
const x = o;
return /* @__PURE__ */ e.jsxs(
x,
{
className: "bg-primary min-h-x40 h-full base-row align-items-center br-x4 min-w-x252 text-decoration-none ui-entry-btn",
href: t,
rel: "noreferrer noopener",
children: [
/* @__PURE__ */ e.jsx(l, { py: "x8", px: "x12", className: "items-center ui-entry-btn-spid", children: r || (s ? /* @__PURE__ */ e.jsx(a, { color: "white" }) : /* @__PURE__ */ e.jsx("div", { style: { width: 24, height: 24 }, "aria-hidden": "true" })) }),
/* @__PURE__ */ e.jsxs(
"span",
{
className: "p-x8 fw-bold text-white text-decoration-none fs-6",
rel: "noreferrer noopener",
children: [
i,
n && /* @__PURE__ */ e.jsx("span", { className: "visually-hidden", children: n })
]
}
)
]
}
);
};
export {
h as EntryButton
};
//# sourceMappingURL=index.es125.js.map