layout.overlay
Controls placed over a photo or video, like the arrows in a dialog.media, kept readable on any image
Read https://www.prongs.dev/docs/intents/layout/overlay.md and tell me whether layout.overlay fits what I am building.Layout intents
Example
<Layout intent="layout.overlay">
<Action intent="action.skip" icon={<ChevronLeft />} label="Previous photo" onClick={previous} />
<Action intent="action.skip" icon={<ChevronRight />} label="Next photo" onClick={next} />
</Layout>Connections
Choosing between neighbours
If it is
Use
Controls placed over a photo or video, like the arrows in a dialog.media, kept readable on any image
layout.overlayControls on the page itself
layout.actions
For registry authors
Pack intent. prongs add media puts the media 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 layout.overlay 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.stackChildren in a column, free to shrink inside a row or grid
flex min-w-0 flex-col
layout.overlayControls placed over a photo or video, like the arrows in a dialog.media, kept readable on any image
z-10 [&>button]:bg-black/45 [&>button]:text-white [&>button]:backdrop-blur-sm [&>button:hover]:bg-black/65
flex min-w-0 flex-col z-10 [&>button]:bg-black/45 [&>button]:text-white [&>button]:backdrop-blur-sm [&>button:hover]:bg-black/65
'layout.overlay': {
kind: 'semantic',
description: 'Controls placed over a photo or video, like the arrows in a dialog.media, kept readable on any image',
refs: ['arrange.stack'],
binding: {
classes: 'z-10 [&>button]:bg-black/45 [&>button]:text-white [&>button]:backdrop-blur-sm [&>button:hover]:bg-black/65',
},
notFor: [{ context: 'controls on the page itself', instead: 'layout.actions' }],
},