Miao-Yunzai/component/NavItem.tsx

13 lines
276 B
TypeScript
Raw Normal View History

2024-06-15 11:18:45 +08:00
import React from "react";
export default function NavItem({ href, children }) {
return (
<li>
<a
href={href}
className={`block px-3 py-2 rounded-md bg-sky-500 text-white`}
>
{children}
</a>
</li>
)
}