# 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

```bash
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](/content/docs/navigation/index.html). 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

```bash
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

```bash
npm install lucide-react motion
```

## Usage

Copy Text

```javascript
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.
