Pack
Media pack
Photos, video and music: galleries, players and full-size views.
Adding it
npx prongs add mediaCopies the 6 intents below into your registry, skipping any it already has, and regenerates PRONGS.md. A “not for” line that points at an intent your registry does not have is left out.
Intents
action.* Action
nav.* Navigation
layout.* Layout
media.* Media
dialog.* Dialog
Next to the starter
The starter intents this pack’s intents are told apart from. Each pack intent’s page says when to use which.
media.imageAn image that illustrates content or is the content: an article cover, a screenshot, a product photo, a logo, cover art
<img>dialog.taskA focused task that blocks the page until done or dismissed: edit settings, compose
<dialog>layout.actionsCommands side by side: a form’s buttons, a dialog’s choices
<div>action.submitDoes what a form, dialog or step exists for: send, save, create, confirm, next, pay. Pass verb="save", "create", "pay"... to name it for analytics.
<button>nav.pagingOne link in a layout.pager below a long list or table: a page number, Previous or Next. Pass current on the page shown
<a>
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.