Header Pro 2: floating pill with announcementPRO
A dismissible announcement bar above a floating pill header that shrinks as you scroll, with a moving highlight behind the hovered link and a phone menu.
Installation
Once per project: add the Pro registry and your licence key.
components.json{ "registries": { "@ballmac": "https://ui.ballmac.com/r/{name}.json", "@ballmac-pro": { "url": "https://ui.ballmac.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${BALLMAC_LICENSE_KEY}" } } } }.env.localBALLMAC_LICENSE_KEY=your-licence-keyAdd it.
$ pnpm dlx shadcn@latest add @ballmac-pro/header-pro-2Need a licence or help with setup?
Usage
import { HeaderPro2 } from "@/components/ballmac/blocks/header-pro-2/header-pro-2"Dependencies
- npm
- lucide-react
- Registry
- @ballmac/buttonshadcn/utils
Use with AI
Sticky floating header. The announcement can be dismissed; motion is limited to size and a small highlight and respects reduced motion. With the shadcn MCP server set up (guide), ask your agent:
Add the Ballmac UI Header Pro 2: floating pill with announcement (@ballmac-pro/header-pro-2) to this project with the shadcn MCP, then use it where it fits.
Use it for
- Marketing sites
Not for
- Dense app navigation
Registry JSON (needs your licence key): https://ui.ballmac.com/r/pro/header-pro-2.json
Covered by the Ballmac UI Pro license.
More header blocks
Header 1: sticky with mobile menu
Sticky site header with brand, main links, sign-in and primary action, and an accessible mobile menu that closes on Escape or link tap.
Header 2: mega menu with mobile sheet
Sticky header with brand, a mega menu of grouped links and a featured card, sign-in and primary actions. On phones the same links open in a slide-in sheet with accordions.
Header Pro 1: mega menu navigation
A top bar with menus that open full-width panels of grouped links and a feature card, with hover, click and arrow-key support, and a disclosure menu on phones.