Miao-Yunzai/component/NavItem.tsx

14 lines
254 B
TypeScript

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>
)
}