media.image
An image that illustrates content or is the content: an article cover, a screenshot, a product photo, a logo, cover art
Read https://www.prongs.dev/docs/intents/media/image.md and tell me whether media.image fits what I am building.Media intents
Example
AL<Media intent="media.image" src={post.coverUrl} alt="What the image shows" />Connections
Choosing between neighbours
If it is
Use
An image that illustrates content or is the content: an article cover, a screenshot, a product photo, a logo, cover art
media.imageAn image that illustrates content
rather thanmedia.personmedia.imageA picture
rather thanmedia.embedmedia.imageAn image that illustrates an article
rather thanmedia.artworkmedia.imageA photo in a list or grid, cropped to fit
rather thanmedia.enlargedmedia.image
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 media.image 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.
frame.coverWide rounded rectangle; centres the fallback text when there is no image
flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg bg-surface-active object-cover text-sm text-surface-muted
media.imageAn image that illustrates content or is the content: an article cover, a screenshot, a product photo, a logo, cover art
flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg bg-surface-active object-cover text-sm text-surface-muted
'media.image': {
kind: 'semantic',
description: 'An image that illustrates content or is the content: an article cover, a screenshot, a product photo, a logo, cover art',
refs: ['frame.cover'],
},