Skip to Content
Kokonut UI

NV-01Navigation

Split Nav

Navigation bar that splits around the active link, with drag-to-scrub, flick projection and an optional compact fold.

Install with
motion

PRODocs Search and more like it are in Kokonut UI Pro

Installation

Split Nav is a free, open-source React component in the Kokonut UI Navigation collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/morphic-navbar.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/morphic-navbar

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/morphic-navbar.tsx.

npm install motion

Usage

import MorphicNavbar from "@/components/kokonutui/morphic-navbar";

export default function Example() {
  return <MorphicNavbar />;
}

Props

items
Record<string, NavItem>Default built-in

Links keyed by their href, in display order.

defaultPath
string

Initially active path. Defaults to the first item's path. When an item's path matches the current route, that item is active instead.

compact
booleanDefault false

After 80px of page scroll, fold the bar down to the active link plus a chevron that opens it again.

className
string

Extra classes for the root element.

NavItem

namerequired
string

Dependencies

NeedsVersionComes from
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.