All-Access · 26 templates$1636.97$99/year — save 93%Get access
  • HomeHome
  • TemplatesTemplates28
  • ComponentsComponents78
  • PricingPricing
  • BlogBlog
  • Need a Website?Need a Website?New
Unlock All AccessUnlock All Access

Our latest template collection

Ready-to-launch sites for real estate agents, service businesses, and local brands — built to rank, load fast, and convert.

Explore All TemplatesExplore All Templates

Fanfare - Festival & Event Website Template

Fanfare is a colourful festival and event website template: poster hero, flip-card lineup, programme with saved sessions, passes, venue. Next.js, Astro, Sanity.

Download Template
Fanfare - Festival & Event Website Template

Plenar - Conference & Event Website Template

Plenar is a premium conference and event website template: countdown hero, speakers, schedule with saved sessions, tickets, venue map. Next.js, Astro, Sanity.

Download Template
Plenar - Conference & Event Website Template

Vardane - Luxury Expedition & Mountaineering Website Template

Vardane is a premium website template for mountaineering and expedition companies: film hero, route map, itineraries, departures. Next.js, Astro, Sanity.

Download Template
Vardane - Luxury Expedition & Mountaineering Website Template
ComponentsNavbar

Navbar Float

View code
Full screen

A floating, blurred pill navbar with rounded links and a mobile dropdown inside the capsule. React and Tailwind CSS, no dependencies.

NavbarFloat.tsx
"use client";

// Floating pill navbar: a rounded, blurred dark bar that sits below the top
// edge, with pill links and a mobile dropdown inside the same capsule.
// Pure Tailwind + React, no dependencies. Works with Tailwind v3 and v4.

import { useState } from "react";

type Link = { label: string; href: string };

type Props = {
  logo?: string;
  links?: Link[];
  signIn?: Link;
  cta?: Link;
};

const DEFAULT_LINKS: Link[] = [
  { label: "Product", href: "#" },
  { label: "Customers", href: "#" },
  { label: "Pricing", href: "#" },
  { label: "Changelog", href: "#" },
];

export default function NavbarFloat({
  logo = "Lumen",
  links = DEFAULT_LINKS,
  signIn = { label: "Sign in", href: "#" },
  cta = { label: "Get started", href: "#" },
}: Props) {
  const [open, setOpen] = useState(false);

  return (
    <div className="sticky top-4 z-50 flex w-full justify-center px-4 py-5 font-sans antialiased">
      <header className="w-full max-w-3xl rounded-2xl border border-white/10 bg-zinc-900/90 backdrop-blur-xl">
        <div className="flex h-14 items-center justify-between px-5">
          <a href="#" className="font-serif text-2xl font-bold uppercase tracking-tight text-white">
            {logo}
          </a>

          <nav className="hidden items-center gap-1 md:flex">
            {links.map((l) => (
              <a key={l.label} href={l.href} className="rounded-full px-3 py-1.5 text-sm text-zinc-400 transition-all duration-150 hover:bg-white/5 hover:text-white">
                {l.label}
              </a>
            ))}
          </nav>

          <div className="hidden items-center gap-2 md:flex">
            <a href={signIn.href} className="rounded-full bg-white/5 px-3 py-1.5 text-sm text-zinc-400 transition-all duration-150 hover:bg-white/10 hover:text-white">
              {signIn.label}
            </a>
            <a href={cta.href} className="rounded-full bg-lime-500 px-4 py-2 text-sm font-semibold text-black transition-colors duration-200 hover:bg-lime-400">
              {cta.label}
            </a>
          </div>

          <button type="button" className="relative flex h-6 w-6 items-center justify-center md:hidden" onClick={() => setOpen(!open)} aria-label="Toggle menu" aria-expanded={open}>
            <span className={`absolute h-px w-5 bg-white transition-all duration-300 ${open ? "rotate-45" : "-translate-y-2"}`} />
            <span className={`absolute h-px w-5 bg-white transition-all duration-300 ${open ? "opacity-0" : ""}`} />
            <span className={`absolute h-px w-5 bg-white transition-all duration-300 ${open ? "-rotate-45" : "translate-y-2"}`} />
          </button>
        </div>

        {open && (
          <div className="flex flex-col gap-1 border-t border-white/10 px-5 py-5 md:hidden">
            {links.map((l) => (
              <a key={l.label} href={l.href} onClick={() => setOpen(false)} className="rounded-full px-3 py-2 text-sm text-zinc-400 transition-all hover:bg-white/5 hover:text-white">
                {l.label}
              </a>
            ))}
            <div className="flex flex-col gap-2 border-t border-white/10 pt-3">
              <a href={signIn.href} className="px-3 py-2 text-sm text-zinc-400">
                {signIn.label}
              </a>
              <a href={cta.href} className="rounded-full bg-white px-4 py-2.5 text-center text-sm font-semibold text-black">
                {cta.label}
              </a>
            </div>
          </div>
        )}
      </header>
    </div>
  );
}

How to use it

  1. Make sure your Next.js or React project has Tailwind CSS set up (v3 or v4 both work).
  2. Create components/NavbarFloat.tsx and paste the code.
  3. Import it into a page and replace the sample text and images with your own.

Need the whole website?

Skip the assembly

Our Next.js & Astro templates ship every page already built, with Sanity CMS and SEO included.

Browse templates Browse templates
Share
Category
Navbars
Dependencies
None, just React
Works with
Next.js, React, Tailwind CSS v3 & v4
Added
Apr 13, 2026

More navbars

View all
Navbar with Announcement Bar
Navbar

Navbar with Announcement Bar

Navbar Dark
Navbar

Navbar Dark

Navbar Simple
Navbar

Navbar Simple

Launch a full site instead

Fanfare - Festival & Event Website TemplateNext.js + Astro
All-Access PREMIUM NEXTJS ASTRO
Fanfare - Festival & Event Website Template

Fanfare is a colourful festival and event website template: poster hero, flip-card lineup, programme...

Preview
Plenar - Conference & Event Website TemplateNext.js + Astro
All-Access NEXTJS ASTRO PREMIUM
Plenar - Conference & Event Website Template

Plenar is a premium conference and event website template: countdown hero, speakers, schedule with s...

Preview
Vardane - Luxury Expedition & Mountaineering Website TemplateNext.js + Astro
All-Access NEXTJS ASTRO PREMIUM
Vardane - Luxury Expedition & Mountaineering Website Template

Vardane is a premium website template for mountaineering and expedition companies: film hero, route ...

Preview

Ready for a faster site that's easier to edit?

Book a free 30-minute call. We'll review your current site and send a fixed-price plan. No pressure, no pitch.

Book Free Call Book Free Call No commitment required

Fast Next.js + Sanity websites, built for you or ready to launch with our templates.

Book a Free Call Book a Free Call
Services
  • Web Design
  • UI/UX Design
  • Framer Dev
  • Webflow Dev
  • Custom Dev
  • Sanity CMS
Resources
  • Templates
  • Pricing
  • License
  • Components
  • Blog
  • Case Studies
Company
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
© 2026 rayso.studio — All rights reservedDesigned & built in-house Remote-first agency
Let's TalkLet's Talk