Sentence navigationSentence navbar

The navigation as one plain sentence, with one word you can swap.

Features

  • One sentence with the links written into it: "See the work, the prices or the studio"
  • One word has a dotted line and opens a short list; a new pick rolls into its place
  • The link for the section on screen turns ink
  • On phones the sentence becomes the menu, set large
  • Links and the word's menu work from the keyboard

Best for: Studios, consultants and freelancers who want the navbar itself to say what they do and for whom.

Installation

npm install motion lucide-react @radix-ui/react-slot class-variance-authority clsx tailwind-merge

Then copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.

Props

PropTypeDefaultDescription
logoReactNode-Your logo. It inherits currentColor.
leadstring-The opening words: "We design websites for".
choices{ label: string; href: string }[]-Options for the word you can swap.
linksLeadstring"See"The words before the links.
itemsNavItem[]-Links, written into the sentence: "the work".
cta{ label: string; href: string }-Optional call-to-action button.
onChoiceChange(choice) => void-Called when the word changes.
classNamestring-Extra classes for the header.

FAQ

Is the Sentence navbar free to use?

Yes. Sentence is free to copy into your own projects. Open the Code tab and paste the files into your app.

Does Sentence work with Next.js and React?

Yes. It's a React client component made for the Next.js App Router, styled with Tailwind CSS and animated with Framer Motion (the motion package).

Can I use Sentence in JavaScript instead of TypeScript?

Yes. Every file comes in TypeScript and JavaScript. Switch the language in the Code tab.

What does Sentence need installed?

motion, lucide-react, @radix-ui/react-slot, class-variance-authority, clsx, tailwind-merge, plus the shared helpers from the Installation page.

Is Sentence accessible?

Every link and button is reachable by keyboard with a visible focus ring, and the animation stays still for visitors who ask for reduced motion.