layout.actions
Commands side by side: a form’s buttons, a dialog’s choices
Layout intents
Example
One
Two
Three
<Layout intent="layout.actions">
…
</Layout>Choosing between neighbours
Find the row that describes your element, and use the intent on the right.
If it is
Use
Commands side by side: a form’s buttons, a dialog’s choices
layout.actionsthis pageControls that act on the content below them
layout.toolbarThe main calls to action under a page’s pitch headline
layout.pitch.actionsCommands on their own, like a form’s buttons
rather thanlayout.headlinelayout.actionsthis pageA form’s or dialog’s buttons
rather thanlayout.pitch.actionslayout.actionsthis pageCommands
rather thanlayout.metalayout.actionsthis pageControls on the page itself
rather thanlayout.overlaylayout.actionsthis page
Connections
Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.
- Built from
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.actions 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.rowChildren in a wrapping row
flex flex-row flex-wrap items-center
layout.actionsCommands side by side: a form’s buttons, a dialog’s choices
gap-3
flex flex-row flex-wrap items-center gap-3
'layout.actions': {
kind: 'semantic',
description: 'Commands side by side: a form’s buttons, a dialog’s choices',
refs: ['arrange.row'],
binding: { classes: 'gap-3' },
notFor: [
{
context: 'controls that act on the content below them',
instead: 'layout.toolbar',
},
{
context: 'the main calls to action under a page’s pitch headline',
instead: 'layout.pitch.actions',
},
],
},