media

Type: string|array
Default: ['image', 'logo']
Values: 'image'|'logo'|'screenshot'|'video'
It determines the field to used as media of the card.
import Microlink from '@microlink/react' 
  
export default () => (
  <Microlink
    url='https://microlink.io'
    media={['image', 'logo']}
  />
)
The default value is a collection of field, meaning that the first valid value will be used as the image of the card.
However, you can pass a single value to be used instead, for example logo
import Microlink from '@microlink/react' 
  
export default () => (
  <Microlink
    url='https://microlink.io'
    media='logo'
  />
)
The video detection is also supported
import Microlink from '@microlink/react' 
  
export default () => (
  <Microlink
    url='https://microlink.io'
    media='video'
  />
)

media

Type: string|array
Default: ['image', 'logo']
Values: 'image'|'logo'|'screenshot'|'video'
It determines the field to used as media of the card.
import Microlink from '@microlink/react' 
  
export default () => (
  <Microlink
    url='https://microlink.io'
    media={['image', 'logo']}
  />
)
The default value is a collection of field, meaning that the first valid value will be used as the image of the card.
However, you can pass a single value to be used instead, for example logo
import Microlink from '@microlink/react' 
  
export default () => (
  <Microlink
    url='https://microlink.io'
    media='logo'
  />
)
The video detection is also supported
import Microlink from '@microlink/react' 
  
export default () => (
  <Microlink
    url='https://microlink.io'
    media='video'
  />
)