Layouts

App Shell

An app shell: a sidebar, a topbar and a workspace with stats and a table. The sidebar collapses to icons without JS — a checkbox and :has(). The workspace owns the scroll. For dashboards, CRMs, analytics and admin panels.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • heading and lead — the title and subtitle above the layout; without them — a ghost
  • items — slots in order: 01 sidebar navigation, 02 topbar, 03 stat, 04 stat, 05 chart, 06 table; title/text/value/media
  • media — your own frame, video or a background from the Background category (surface-*) inside a slot, under the text

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
App Shell — An app shell: a sidebar, a topbar and a workspace with stats and a table. The sidebar collapses to icons without JS — a checkbox and :has(). The workspace owns the scroll. For dashboards, CRMs, analytics and admin panels.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/layout-008?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Layout008
  heading="Layout heading"
  lead="A one-line subtitle."
  items={[
    { title: "sidebar navigation", text: "The main thing, briefly." },
    { title: "topbar", text: "The main thing, briefly." },
    { title: "stat", text: "The main thing, briefly." },
    { title: "stat", text: "The main thing, briefly." },
    { title: "chart", text: "The main thing, briefly." },
    { title: "table", text: "The main thing, briefly." },
  ]}
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Sidebar
side · default: left
Collapsed
collapsed · default: off
Numbers
numbers · default: on
Accent
accent · default: theme colour

FAQ

How do I add App Shell with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does App Shell depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in App Shell?
Adapt: heading and lead — the title and subtitle above the layout; without them — a ghost; items — slots in order: 01 sidebar navigation, 02 topbar, 03 stat, 04 stat, 05 chart, 06 table; title/text/value/media; media — your own frame, video or a background from the Background category (surface-*) inside a slot, under the text. Keep as installed: the imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the local --vibeui-layout-008-* palette — do not swap it for your theme tokens; a single scroll owner — main with overflow: auto; the shell must not scroll as a whole with the sidebar.
Is App Shell free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/layout-008.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

A composite block: imports from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm dependencies, JS only for the cursor light and useId for the sidebar checkbox. An auto/1fr grid from 48rem: a 16rem sidebar over two rows, a topbar, main with overflow: auto — the only scrolling container, the shell is min(44rem, 100dvh) tall. Collapsing: a hidden checkbox before the sidebar, a label in the topbar, :checked ~ aside narrows to 4.5rem and hides labels (data-collapsed — the initial state). On phones the sidebar is hidden, main in two columns. data-side=right moves the sidebar right. Slots: 01 sidebar navigation, 02 topbar, 03 stat, 04 stat, 05 chart, 06 table — items[i] with title/text/value/media, without them — a ghost. Numbers (numbers) show which slot goes where. Entrance is scroll-driven via animation-timeline: view(), without support — a load cascade; hover — cursor light and edge highlight at the pointer. Palette --vibeui-layout-008-* with light-dark, container queries, DOM order = reading order.

Tags

  • layout
  • app shell
  • dashboard
  • sidebar
  • admin
  • saas
  • workspace
  • composite
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…