prongs
GitHub

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

Component

Renders

<div>

Profile

Comes from

starter
Read https://www.prongs.dev/docs/intents/layout/shell.md and tell me whether layout.shell fits what I am building.

Example

Preview

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.shell
  • A page without a sidebar

    layout.page
  • The frame of the whole app, around every signed-in page

    rather than layout.subnav
    layout.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.sidebar

    A fixed-width sidebar column beside a flexible one, stacked on phones

    grid min-h-dvh md:grid-cols-[15rem_minmax(0,1fr)]
  • 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

Final classes
grid min-h-dvh md:grid-cols-[15rem_minmax(0,1fr)]
Definition
TS
'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' }],
},