layout.shell
The frame of an app with a sidebar: one layout.aside beside the main column. Used once, around the signed-in part of the app
Read https://www.prongs.dev/docs/intents/layout/shell.md and tell me whether layout.shell fits what I am building.Layout intents
Example
layout.shell: a sidebar beside the main column, around the signed-in app
<Layout intent="layout.shell">
<Layout intent="layout.aside">…</Layout>
<Layout intent="layout.page">…</Layout>
</Layout>Connections
Choosing between neighbours
If it is
Use
The frame of an app with a sidebar: one layout.aside beside the main column. Used once, around the signed-in part of the app
layout.shellA page without a sidebar
layout.pageThe frame of the whole app, around every signed-in page
rather thanlayout.subnavlayout.shell
For registry authors
Starter intents. These are the intents prongs add puts in your registry, shown in this site’s theme. Yours are your own registry.ts: rename, restyle and add to them, and see them with prongs add gallery.
What this intent is built from and its entry in components/prongs/registry.ts. You only need this to change how it looks or to add an intent like it.
How layout.shell resolves, and its definition
Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.
arrange.sidebarA fixed-width sidebar column beside a flexible one, stacked on phones
grid min-h-dvh md:grid-cols-[15rem_minmax(0,1fr)]
layout.shellThe frame of an app with a sidebar: one layout.aside beside the main column. Used once, around the signed-in part of the app
grid min-h-dvh md:grid-cols-[15rem_minmax(0,1fr)]
'layout.shell': {
kind: 'semantic',
description: 'The frame of an app with a sidebar: one layout.aside beside the main column. Used once, around the signed-in part of the app',
refs: ['arrange.sidebar'],
notFor: [{ context: 'a page without a sidebar', instead: 'layout.page' }],
},