prongs
GitHub

layout.band

A full-width part of a marketing page with its content centred: a hero, a row of features, a call to action. Put a layout.page inside for the content width

Component

Renders

<section>

Profile

Comes from

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

Example

Preview

Ship the same UI everywhere

One vocabulary for your pages and your agents.

<Layout intent="layout.band">
<Layout intent="layout.page">
<Text intent="heading.pitch">Ship the same UI everywhere</Text>
<Action intent="action.start" verb="signup" href="/signup">Get started</Action>
</Layout>
</Layout>

Connections

Choosing between neighbours

  • If it is

    Use

  • A full-width part of a marketing page with its content centred: a hero, a row of features, a call to action. Put a layout.page inside for the content width

    layout.band
  • The centred column of content inside it

    layout.page

For registry authors

Pack intent. prongs add marketing puts the marketing pack’s intents in your registry. They are then yours like the starter intents: 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.band 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.stack

    Children in a column, free to shrink inside a row or grid

    flex min-w-0 flex-col
  • layout.band

    A full-width part of a marketing page with its content centred: a hero, a row of features, a call to action. Put a layout.page inside for the content width

    w-full py-16
Final classes
flex min-w-0 flex-col w-full py-16
Definition
TS
'layout.band': {
kind: 'semantic',
description: 'A full-width part of a marketing page with its content centred: a hero, a row of features, a call to action. Put a layout.page inside for the content width',
refs: ['arrange.stack'],
binding: { element: 'section', classes: 'w-full py-16' },
notFor: [
{
context: 'the centred column of content inside it',
instead: 'layout.page',
},
],
},