Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsNavigation & utility

Navbar: floating

A pill-shaped navbar floating over the page; links fold into a no-JS menu on phones.

Preview

Version
Preview theme color
More themes

Once you scroll, the pill tightens slightly and lifts with a deeper shadow. With reduced motion turned on, it renders the plain layout.

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { NavbarFloating } from "@/components/custom/navbar-floating";

<NavbarFloating
  brand="Acme"
  links={[{ label: "Pricing", href: "/pricing" }]}
  action={{ label: "Sign up", href: "/signup" }}
/>
import { NavbarFloatingMotion } from "@/components/custom/navbar-floating/navbar-floating-motion";

<NavbarFloatingMotion brand="Acme" links={links} />

Props

PropTypeDefaultDescription
brand* (required)string–Name at the left, linked to brandHref.
brandHrefstring"/"Where the brand links.
links* (required){ label; href }[]–Main navigation.
action{ label; href }–Button at the right.
...propsReact.ComponentProps<"header">–Any other header attribute goes to the root element.
PropTypeDefaultDescription
brand* (required)string–Name at the left, linked to brandHref.
brandHrefstring"/"Where the brand links.
links* (required){ label; href }[]–Main navigation.
action{ label; href }–Button at the right.
...propsReact.ComponentProps<"header">–Any other header attribute goes to the root element.

Accessibility

  • Links sit in a nav labelled “Main”; on phones they fold into a details/summary menu labelled “Menu”.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.