UNPKG

@anoki/fse-ui

Version:

FSE UI components library

33 lines (32 loc) 1.02 kB
import { j as r } from "./index.es237.js"; import { BreadcrumbItem as i } from "./index.es274.js"; import { clsx as l } from "./index.es239.js"; import './components/navigations/Breadcrumb/Breadcrumb.css';/* empty css */ const n = ({ items: e = [{ label: "Home", href: "#" }] }) => /* @__PURE__ */ r.jsx("nav", { "aria-label": "Percorso di navigazione", children: /* @__PURE__ */ r.jsx("ol", { className: l("ui-breadcrumb", "fs-6 md-fs-custom"), children: e.map((a, s) => /* @__PURE__ */ r.jsxs("li", { className: "ui-breadcrumb-wrapper", children: [ /* @__PURE__ */ r.jsx( i, { label: a.label, href: a.href, asLink: a.asLink, isClickable: a.isClickable ?? !0 } ), s < e.length - 1 && /* @__PURE__ */ r.jsx( "span", { className: l( "ui-breadcrumb-separator", "fw-bold text-slate-28" ), "aria-hidden": "true", children: "/" } ) ] }, s)) }) }); export { n as Breadcrumb }; //# sourceMappingURL=index.es6.js.map