Skip to content

Floating pill

Dark pill navbar with a contact button.

Usage

Usage
import { Navbar } from '@/components/blocks/navbar-01'


<Navbar />


// Swap in your own content
<Navbar
  logoLabel="Orbit Studio home"
  links={[
    { label: 'Work', href: '/work' },
    { label: 'About', href: '/about' },
  ]}
  ctaLabel="hello@orbit.studio"
  ctaHref="mailto:hello@orbit.studio"
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/navbar-01

Source

Props

Floating pill props
PropTypeDefaultDescription
logoReactNode= Planet iconContent inside the white circle on the left.
logoHrefstring= '/'Where the logo links to.
logoLabelstring= 'Home'Accessible label for the logo link.
linksNavbarLink[]= Work / Studio / Lab / JournalLabel and href pairs shown in the bar and the mobile menu.
ctaLabelstring= 'hello@example.com'Text in the white pill on the right.
ctaHrefstring= 'mailto:hello@example.com'Where the pill links to.
classNamestring= —Additional classes for the header.