dialog.task
A focused task that blocks the page until done or dismissed: edit settings, compose
Read https://www.prongs.dev/docs/intents/dialog/task.md and tell me whether dialog.task fits what I am building.Dialog intents
Example
<Dialog intent="dialog.task" open={open} onClose={close} label="Edit profile">
<Field intent="field.text" label="Name" />
<Action intent="action.submit" verb="save">Save</Action>
</Dialog>Connections
Choosing between neighbours
If it is
Use
A focused task that blocks the page until done or dismissed: edit settings, compose
dialog.taskSomething that interrupts the page until dealt with
rather thanlayout.disclosuredialog.taskA form or anything with several steps
rather thandialog.confirmdialog.taskA task that should take the user’s full attention
rather thandialog.sheetdialog.taskA task that needs the user’s full attention
rather thanpopover.menudialog.taskEditing or deciding something
rather thandialog.readerdialog.taskA task or a form
rather thandialog.mediadialog.task
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 dialog.task 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.
surface.overlayFloats over a dimmed page and starts its own stack of surfaces
surface-overlay m-auto rounded-lg border border-surface-border shadow-xl backdrop:bg-black/50
dialog.taskA focused task that blocks the page until done or dismissed: edit settings, compose
w-[min(32rem,calc(100%-2rem))] p-6
surface-overlay m-auto rounded-lg border border-surface-border shadow-xl backdrop:bg-black/50 w-[min(32rem,calc(100%-2rem))] p-6
'dialog.task': {
kind: 'semantic',
description: 'A focused task that blocks the page until done or dismissed: edit settings, compose',
refs: ['surface.overlay'],
binding: { classes: 'w-[min(32rem,calc(100%-2rem))] p-6' },
},