media.person
Identifies a person: their photo, or initials when there is none
Read https://www.prongs.dev/docs/intents/media/person.md and tell me whether media.person fits what I am building.Media intents
Example
AL<Media intent="media.person" src={user.avatarUrl} alt={user.name} />Connections
Choosing between neighbours
If it is
Use
Identifies a person: their photo, or initials when there is none
media.personAn image that illustrates content
media.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.person 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.roundSmall circle; centres initials when there is no image
inline-flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-surface-active object-cover text-xs font-medium text-surface-muted
media.personIdentifies a person: their photo, or initials when there is none
inline-flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-surface-active object-cover text-xs font-medium text-surface-muted
'media.person': {
kind: 'semantic',
description: 'Identifies a person: their photo, or initials when there is none',
refs: ['frame.round'],
notFor: [
{ context: 'an image that illustrates content', instead: 'media.image' },
],
},