rmnr
DocsTourSlicesBest PracticeAgentsInstall

Command Palette

Search for a command to run...

New

Slice · AI prompt

Three-Column Layout — Sidebar/Content/Inspector

ThreeColumnLayoutAdvanced — collapsible left/right + resizable widths + responsive breakpoints + PanelSection compound (Header/Items/Footer) + per-panel footer slots. Models shadcn sidebar API for the panel interior. Pair with PanelGroup/PanelMenu/PanelSeparator primitives. Trigger ≠ header (V-wave separation rule).

Resource detail View source
Copy this prompt into Claude / Codex / Cursor
three-column.prompt.mdmarkdown
# Install `three-column` — Three-Column Layout — Sidebar/Content/Inspector

> ThreeColumnLayoutAdvanced — collapsible left/right + resizable widths + responsive breakpoints + PanelSection compound (Header/Items/Footer) + per-panel footer slots.

📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail   : https://resource.rahmanef.com/slices/three-column
🧠 JSON catalog   : https://resource.rahmanef.com/api/knowledge?slice=three-column
🔗 Source         : https://github.com/rahmanef63/resource-site/tree/main/template-base/frontend/slices/three-column

## 1. Install

```bash

# alias: npx rr add three-column
```

The CLI copies `template-base/frontend/slices/three-column/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.

## 2. What it ships

- shadcn primitives: `sheet`, `scroll-area`, `separator`, `tooltip`

## 3. Wire it up

Run `npx rr add three-column`. <ThreeColumnLayoutAdvanced preset="feature" storageKey persistState left={…PanelSection…} center={…PanelSection unstyled…} right={…PanelSection…} leftFooter centerFooter rightFooter />. Center column SHOULD pass `unstyled` to drop sidebar tokens — body is content surface. `storageKey` MUST differ per slice or persisted widths collide.

## Rules of engagement

- shadcn-only UI primitives. No raw `<button>` / `<dialog>` / native date or file inputs.
- 200-line hard cap per source file (extract neighbours when over).
- All Convex queries hit an index (`.withIndex(...)`); never bare `.collect()`.
- Public mutations/queries declare `args:` validators + authz.
- Full ruleset: https://resource.rahmanef.com/best-practice

The agent will fetch /llms.txt for the full ruleset and use /api/knowledge for the JSON catalog.