MCPcopy Create free account
hub / github.com/api-platform/website / ArrowLink

Function ArrowLink

pwa/components/common/ArrowLink.tsx:15–37  ·  view source on GitHub ↗
({
  href,
  text,
  className,
  external,
  size = "large",
}: ArrowLinkProps)

Source from the content-addressed store, hash-verified

13}
14
15export default function ArrowLink({
16 href,
17 text,
18 className,
19 external,
20 size = "large",
21}: ArrowLinkProps) {
22 const externalProps = { target: "_blank", rel: "noopener noreferrer" };
23 return (
24 <Link
25 href={href}
26 {...(external ? externalProps : {})}
27 className={classNames(
28 "flex flex-row gap-2 font-title text-blue cursor-pointer pl-8 relative group hover:pr-8 hover:pl-0 group-hover/card:pr-8 group-hover/card:pl-0 transition-all delay-75 duration-300 hover:brightness-125 group-hover/card:brightness-125",
29 className,
30 size === "small" ? "text-xs" : "text-base"
31 )}
32 >
33 <Arrow className="h-6 w-6 absolute left-0 top-1/2 -translate-y-1/2 transition-all duration-300 group-hover:left-full group-hover/card:left-full delay-75 group-hover:-translate-x-full group-hover/card:-translate-x-full" />
34 <span className="uppercase font-bold">{text}</span>
35 </Link>
36 );
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected