Skip to main content

Media Card Vimeo

A MediaCardVimeo displays a Vimeo video with an optional placeholder image.

Example

Variants

Use theicon above to preview
VariantDescriptionValues
heightThe component height
  • default
  • hero
  • banner
paddingTopThe amount of space above the component
  • regular
  • extra
paddingBottomThe amount of space below the component
  • regular
  • extra

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all users, update the source code in the UI component library directly.
  • Otherwise, you can pass className overrides.

Say you wanted a Vimeo Media Card with a height of 240 pixels:

<MediaCardVimeo {...variants} className='h-60'>
<MediaCardVimeoBackground asChild>
<VimeoPlayer {...vimeo}></VimeoPlayer>
</MediaCardVimeoBackground>
</MediaCardVimeo>