Docs
Notch Nav
Notch Nav
A Notch style trigger that reveals the navigation menu from above.
Loading...
Installation
Usage
import {
NotchNav,
NotchNavContent,
NotchNavItem,
NotchNavTrigger,
} from "@/components/notch-nav";<NotchNav>
<NotchNavTrigger />
<NotchNavContent>
<NotchNavItem href="/">Home</NotchNavItem>
<NotchNavItem href="/about">About</NotchNavItem>
<NotchNavItem href="/products">Products</NotchNavItem>
<NotchNavItem href="/services">Services</NotchNavItem>
<NotchNavItem href="/contact">Contact</NotchNavItem>
</NotchNavContent>
</NotchNav>NOTE: <NotchNavTrigger /> includes all required animation and interaction logic out of the box. The trigger is absolutely positioned at top-0 so ensure the parent container has relative position.
Props / Data Attributes
<NotchNavTrigger />
<NotchNavContent />
<NotchNavItem />
Credits
This component is inspired from this website.