@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 1.07 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/TabBar/TabBar.css');const e=require("./index.cjs237.js"),a=require("./index.cjs238.js");;/* empty css */const i=require("./index.cjs116.js"),x=({navigatonItems:n,asLink:t="a",className:o})=>{const l=t;return e.jsxRuntimeExports.jsx("nav",{className:a.clsx("bg-white ui-tab-bar shadow",o),children:e.jsxRuntimeExports.jsx(i.Row,{as:"ul",className:"list-style-none ui-tab-bar-list",role:"list",children:n.map((s,c)=>{const r=s==null?void 0:s.icon;return e.jsxRuntimeExports.jsx("li",{className:"ui-tab-bar-item",children:e.jsxRuntimeExports.jsxs(l,{href:s.href,className:a.clsx("text-decoration-none text-secondary fs-8 fw-bold",s.active&&"active"),children:[r&&e.jsxRuntimeExports.jsx(r,{color:s.active?"primary":"secondary",filled:!!s.active}),s.shortLabel?s.shortLabel:s.label,s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},c)})})})};exports.TabBar=x;
//# sourceMappingURL=index.cjs13.js.map