@stratakit/react
Version:
A React component library for StrataKit
22 lines (21 loc) • 729 B
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import * as React from "react";
import * as SkAnchor from "@stratakit/bricks/Anchor";
import { useCompatProps } from "./~utils.js";
const Anchor = React.forwardRef((props, forwardedRef) => {
const {
// biome-ignore-start lint/correctness/noUnusedVariables: NOT IMPLEMENTED
underline,
// biome-ignore-end lint/correctness/noUnusedVariables: NOT IMPLEMENTED
children,
isExternal,
...rest
} = useCompatProps(props);
return /* @__PURE__ */ jsxs(SkAnchor.Root, { ...rest, ref: forwardedRef, children: [
/* @__PURE__ */ jsx(SkAnchor.Text, { children }),
isExternal && /* @__PURE__ */ jsx(SkAnchor.ExternalMarker, {})
] });
});
export {
Anchor
};