Skip to content

Pill dropdown

Pill navbar with a resizing dropdown card.

Usage

Usage
import { NavbarPill } from '@/components/blocks/navbar-03'


<NavbarPill />


// Swap in your own content
<NavbarPill
  brand="Modulo"
  links={[
    {
      label: 'Product',
      items: [
        { title: 'Blocks', description: 'Sections ready to ship.', href: '/blocks', icon: 'blocks' },
        { title: 'Themes', description: 'Restyle with one token set.', href: '/themes', icon: 'palette' },
      ],
    },
    { label: 'Pricing', href: '/pricing' },
  ]}
  cta={{ label: 'Start free', href: '/signup' }}
/>

Install

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

Source

Props

Pill dropdown props
PropTypeDefaultDescription
brandstring= 'Latchwell'Wordmark next to the logo, also the home link’s accessible name.
brandHrefstring= '/'Where the brand links to.
logoReactNode= Stacked squares markMark shown before the wordmark.
linksNavbarPillLink[]= Product / Components / Resources / PricingTop-level links. Give a link an href for a plain link, or items ({ title, href, description?, icon? }) for a dropdown. icon takes a built-in name (blocks, palette, terminal, frame, toggle, compass, layers, chart, book, sparkle, grid, chat) or any ReactNode.
ctaNavbarPillCta | null= { label: 'Get started', href: '#get-started' }Blue button at the end of the pill and the mobile menu. Pass null to hide it.
classNamestring= —Additional classes for the header.
styleCSSProperties= —Inline styles, handy for overriding the --pp-* theme variables.