layout.actions
Commands side by side: a form’s buttons, a dialog’s choices
Read https://www.prongs.dev/docs/intents/layout/actions.md and tell me whether layout.actions fits what I am building.Layout intents
Example
<Layout intent="layout.actions">
<Action intent="action.cancel" onClick={cancel}>Cancel</Action>
<Action intent="action.submit" verb="save">Save</Action>
</Layout>Connections
Choosing between neighbours
If it is
Use
Commands side by side: a form’s buttons, a dialog’s choices
layout.actionsControls that act on the content below them
layout.toolbarCommands on their own, like a form’s buttons
rather thanlayout.headlinelayout.actionsControls on the page itself
rather thanlayout.overlaylayout.actions
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',
},
],
},