media

Type:
<string> | <string[]>

Default: [ 'image', 'logo' ]
Values:
'audio' | 'iframe''image' | 'logo' | 'screenshot' | 'video'
Determines the field to use as the media of the card.
  • React
  • Vue
  • Jekyll
  • Vanilla
The default value is a collection of fields, meaning that the first valid value will be used as the image of the card.
You can also pass a single value to be used instead, for example 'logo'
  • React
  • Vue
  • Jekyll
  • Vanilla
The detection of 'video' is also supported
  • React
  • Vue
  • Jekyll
  • Vanilla
Also for 'audio'
  • React
  • Vue
  • Jekyll
  • Vanilla
Even 'iframe'
  • React
  • Vue
  • Jekyll
  • Vanilla