Navigation
Hover Pill Nav
A full-width bar: logo on the left, menu links, social icons and the main button grouped on the right. A soft pill slides under the hovered link.
npx motionsnack add hover-pill-navCustomize
Background
<HoverPillNav />Props
15 properties
| Property | Type | Default | Description |
|---|---|---|---|
| avatar | { src: string; alt?: string } | null | sample portrait | Round photo in the profile mode. |
| logo | { src: string; alt?: string } | null | null | Logo image for the logo mode. |
| links | { label: string; href?: string }[] | 4 sample links | Menu links. |
| socials | { icon: string; href?: string }[] | instagram, linkedin, x | Social profiles as icons. Icons: x, facebook, instagram, youtube, tiktok, linkedin, pinterest, dribbble, behance, github, whatsapp, telegram, threads; anything else gets a link icon. |
| cta | { label: string; href?: string } | sample button | Main button. Leave the label empty to hide it. |
| buttonColor | string | near-black / near-white in dark | Colour of the main button. |
| buttonTextColor | string | white / near-black in dark | Text colour of the main button. |
| buttonRadius | number | fully round | Corner radius of the buttons in px. |
| identityMode | 'profile' | 'name' | 'logo' | 'name' | A profile (photo, name and role), the name alone, or a logo image. |
| name | string | 'Northwind' | Name. Shown in the profile and name modes, and when the logo has no image. |
| role | string | 'Design studio' | Role or tagline under the name in the profile mode. |
| sticky | boolean | true | Keep the bar at the top of the window while the page scrolls. |
| maxWidth | number | 1280 | Widest the content of the bar gets. |
| Button | ComponentType | built-in | Button component from the library for the filled button. Without one the section draws its own. |
| background | string | '#000000' | Bar background. |
About Hover Pill Nav
A full-width header with the logo or name on the left and everything else grouped on the right: menu links, a thin divider, social icons and the main button whose arrow turns on hover. A soft rounded pill follows the pointer from link to link and fades out when it leaves; keyboard focus moves it too. A hairline runs under the bar, which turns translucent with a blur once the page scrolls. On narrow screens a two-line button opens a panel with large links, the button and the social icons.
What's included
- Logo, menu links, socials and button
- Everything but the logo on the right
- Pill sliding under the hovered link
- Translucent blur once scrolled
- Mobile panel with staggered links
- Light and dark look
- Type
- Animated navigation section for Next.js
- Library
- Sections · Navigation
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add hover-pill-nav