1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
backup-websites-2024-01/components/NavLink.tsx

18 lines
385 B
TypeScript

import { ReactNode } from "react";
import Link from "next/link";
type Props = {
href: string;
children: ReactNode;
};
export function NavLink({ href, children }: Props) {
return (
<Link
href={href}
className="inline-block rounded-lg py-1 px-2 text-lg font-medium text-slate-700 hover:bg-slate-100 hover:text-slate-900"
>
{children}
</Link>
);
}