UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

3 lines (2 loc) 1.01 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs137.js"),o=require("./index.cjs91.js"),h=({href:i,asLink:a="a",isExternal:t=!1,fs:l="6",children:r,className:c="",onClick:u,type:x="button",asButton:m,...s})=>{const n=`max-w-fit text-decoration-none text-primary base-row align-items-center fw-bold gap-x8 hover-underline ${(p=>`fs-${p}`)(l)} ${c}`;if(m)return e.jsxRuntimeExports.jsxs("button",{className:`bg-transparent border-none ${n}`,onClick:u,type:x,...s,children:[r,e.jsxRuntimeExports.jsx(o.ArrowRight,{color:"primary",width:24,height:24})]});const d=a;return e.jsxRuntimeExports.jsxs(d,{className:n,href:i,target:t?"_blank":void 0,rel:t?"noreferrer noopener":void 0,...s,children:[r,t&&e.jsxRuntimeExports.jsxs("span",{className:"visually-hidden",children:[" ","(si apre in una nuova finestra)"]}),e.jsxRuntimeExports.jsx(o.ArrowRight,{color:"primary",width:24,height:24})]})};exports.ArrowLink=h; //# sourceMappingURL=index.cjs35.js.map