@anoki/fse-ui
Version:
FSE UI components library
40 lines (39 loc) • 1.29 kB
JavaScript
import { j as e } from "./index.es237.js";
import { Spid as x } from "./index.es391.js";
import './components/ui/EntryButton/EntryButton.css';/* empty css */
import { Row as a } from "./index.es116.js";
const d = ({
href: n,
asLink: t = "a",
showIcon: o = !1,
ariaLabel: r = "Accedi con SPID",
children: i
}) => {
const s = t;
return /* @__PURE__ */ e.jsxs(
s,
{
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: n,
rel: "noreferrer noopener",
children: [
/* @__PURE__ */ e.jsx(a, { py: "x8", px: "x12", className: "items-center ui-entry-btn-spid", children: o ? /* @__PURE__ */ e.jsx(x, { 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,
r && /* @__PURE__ */ e.jsx("span", { className: "visually-hidden", children: r })
]
}
)
]
}
);
};
export {
d as EntryButton
};
//# sourceMappingURL=index.es82.js.map