remix-demo

react router (remix) demo

git clone https://9o.is/git/remix-demo.git

PrimaryLink.tsx

(411B)


      1 import { Link } from "@remix-run/react";
      2 import type { RemixLinkProps } from "@remix-run/react/dist/components";
      3 import { primaryStyles } from "./PrimaryButton";
      4 
      5 type Props = RemixLinkProps & React.RefAttributes<HTMLAnchorElement>;
      6 
      7 export default function PrimaryLink(props: Props) {
      8   return (
      9     <Link {...props} className={`${primaryStyles} ${props.className}`}>
     10       {props.children}
     11     </Link>
     12   );
     13 }