Stack Panel - React Component | Kokonut UI

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

npx shadcn@latest add https://kokonutui.com/r/stack-panel.json

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.

Copy Text

npx shadcn@latest add @kokonutui/stack-panel

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

Copy Text

npm install lucide-react motion

Usage

Copy Text

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

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

Props

className
string
Extra classes for the root element.

Dependencies

Needs Version Comes from
lucide-react ^0.556.0 npm, installed by the CLI
motion ^12.23.25 npm, installed by the CLI
cn from lib/utils.ts shadcn init
React 19 Your app
Tailwind CSS 4 Your app

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