first commit
This commit is contained in:
commit
34ea15a54d
246 changed files with 18660 additions and 0 deletions
20
frontend/src/components/navigation/NavLink.jsx
Normal file
20
frontend/src/components/navigation/NavLink.jsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { NavLink as RouterNavLink } from 'react-router-dom'
|
||||
|
||||
import { cn } from '../../utils/cn'
|
||||
|
||||
export function NavLink({ className, children, ...props }) {
|
||||
return (
|
||||
<RouterNavLink
|
||||
className={({ isActive }) =>
|
||||
cn(
|
||||
'text-label uppercase text-ink-muted transition-colors hover:text-ink',
|
||||
isActive && 'text-ink',
|
||||
className,
|
||||
)
|
||||
}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</RouterNavLink>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue