prongs
GitHub

layout.headline

Content at the start of a line and its controls at the end: a section’s title and its button, a panel’s title bar, a list entry with its actions. The controls drop below when the line runs out of room

Component

Renders

<div>

Profile

Comes from

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

Example

Preview

Members

<Layout intent="layout.headline">
<Text intent="heading.item">Members</Text>
<Action intent="action.start" verb="invite">Invite</Action>
</Layout>

Connections

Choosing between neighbours

  • If it is

    Use

  • Content at the start of a line and its controls at the end: a section’s title and its button, a panel’s title bar, a list entry with its actions. The controls drop below when the line runs out of room

    layout.headline
  • Commands on their own, like a form’s buttons

    layout.actions
  • A heading and its text, read as one

    layout.group
  • A title with its buttons at the end of the line

    rather than layout.intro
    layout.headline

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.headline 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.row

    Children in a wrapping row

    flex flex-row flex-wrap items-center
  • layout.headline

    Content at the start of a line and its controls at the end: a section’s title and its button, a panel’s title bar, a list entry with its actions. The controls drop below when the line runs out of room

    justify-between gap-x-4 gap-y-2
Final classes
flex flex-row flex-wrap items-center justify-between gap-x-4
gap-y-2
Definition
TS
'layout.headline': {
kind: 'semantic',
description: 'Content at the start of a line and its controls at the end: a section’s title and its button, a panel’s title bar, a list entry with its actions. The controls drop below when the line runs out of room',
refs: ['arrange.row'],
binding: { classes: 'justify-between gap-x-4 gap-y-2' },
notFor: [
{
context: 'commands on their own, like a form’s buttons',
instead: 'layout.actions',
},
{
context: 'a heading and its text, read as one',
instead: 'layout.group',
},
],
},