Skip to Content
Kokonut UI

NV-10Navigation

Stack Panel

A panel that drills into pages like settings on a phone. The tapped row's label flies up into the title, and a swipe right takes you back.

Install with
lucide-react, motion

PRODocs Search and more like it are in Kokonut UI Pro

Installation

Stack Panel 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/stack-panel.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/stack-panel

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

npm install lucide-react motion

Usage

import StackPanelDemo from "@/components/kokonutui/stack-panel";

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

Props

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
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.