welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
26 lines (25 loc) • 633 B
JavaScript
"use client";
import { j as t } from "./jsx-runtime-Bqq1Hxg9.mjs";
import { shouldForwardProp as s, forwardRef as a } from "./System.mjs";
import l from "@xstyled/styled-components";
const d = l.aBox.withConfig({ shouldForwardProp: s })`
color: inherit;
text-decoration: none;
`, m = a(
({ children: r, dataTestId: e, target: o, ...i }, n) => /* @__PURE__ */ t.jsx(
d,
{
color: "inherit",
"data-testid": e,
ref: n,
rel: o === "_blank" ? "noopener noreferrer" : void 0,
target: o,
...i,
children: r
}
)
);
m.displayName = "UniversalLink";
export {
m as UniversalLink
};