DocumentationDownloads and examples

Video Preview

Definition

VideoPreview displays a graphic interface as a video preview.

This component is build using the composition between the following parts:

  • VideoPreviewImage which displays the video image preview
  • VideoPreviewTitle displays the title
  • VideoPreviewSubtitle displays the subtitle
  • VideoPreviewTag displays the tag
  • VideoPreviewTimer displays the video timer

Video Preview Props

NameUseTypeDefinition
children
required
React.ReactElement<typeof VideoPreviewImage | typeof ...>Components to be rendered inside the video preview component.
large
optional
booleanSets the video preview size as large.
small
optional
booleanSets the video preview size as small.
className
optional
stringAdditional or alternative styling.
onClick
optional
() => voidFunction which will be triggered when user clicks on the play button.

VideoPreviewImage

Used to show default image.

VideoPreviewImage Props

NameUseTypeDefinition
className
optional
stringAdd class to video preview image


Sizes

VideoPreview component can be build with the following sizes and variants
Medium (default)
play_circle_filled
preview video
Large
play_circle_filled
preview video
Small
preview video
With Tag
Tag
play_circle_filled
preview video
With Title
Tag
play_circle_filled
preview video
With Timer
Tag
play_circle_filled
preview video
With Subtitle
Available on large variant.
Tag
play_circle_filled
preview video