UNPKG

@stratakit/react

Version:

A React component library for StrataKit

23 lines (22 loc) 765 B
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, {}) ] }); }); DEV: Anchor.displayName = "Anchor"; export { Anchor };