Hover Nav

A soft highlight that glides between links as the cursor moves.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/hover-nav.json

Usage

import { HoverNav } from "@/components/hover-nav";

<HoverNav current={pathname} links={[{ label: "Home", href: "/" }, { label: "Work", href: "/work" }]} />

Props

PropTypeDefaultDescription
links*HoverNavLink[]–The links.
currentstring–href of the current page; it gets an underline and aria-current.
classNamestring–