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.
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
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/layout-008?lang=en&theme=dark
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…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero 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
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…