dialog.reader
Shows one piece of content over the whole screen: reading an article
Dialog intents
Example
<Dialog intent="dialog.reader" open={open} onClose={() => setOpen(false)} label="Title">
…
</Dialog>Choosing between neighbours
Find the row that describes your element, and use the intent on the right.
If it is
Use
Shows one piece of content over the whole screen: reading an article
dialog.readerthis pageEditing or deciding something
dialog.taskReading an article
rather thandialog.mediadialog.readerthis pageOne piece of content over the whole screen
rather thandialog.drawerdialog.readerthis 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 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' }],
},