dialog.reader
Shows one piece of content over the whole screen: reading an article
Read https://www.prongs.dev/docs/intents/dialog/reader.md and tell me whether dialog.reader fits what I am building.Dialog intents
Example
<Dialog intent="dialog.reader" open={open} onClose={close} label={post.title}>…</Dialog>Connections
Choosing between neighbours
If it is
Use
Shows one piece of content over the whole screen: reading an article
dialog.readerEditing or deciding something
dialog.task
For registry authors
Pack intent. prongs add editorial puts the editorial 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 dialog.reader 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.readerShows one piece of content over the whole screen: reading an article
m-0 h-full max-h-none w-full max-w-none rounded-none border-0 p-0
surface-overlay border-surface-border shadow-xl backdrop:bg-black/50 m-0 h-full max-h-none w-full max-w-none rounded-none border-0 p-0
'dialog.reader': {
kind: 'semantic',
description: 'Shows one piece of content over the whole screen: reading an article',
refs: ['surface.overlay'],
binding: {
classes: 'm-0 h-full max-h-none w-full max-w-none rounded-none border-0 p-0',
},
notFor: [{ context: 'editing or deciding something', instead: 'dialog.task' }],
},