Go Main page
Go Main page

Web components

cover

components

Video

v.1.0.0 | Saturn

Usage

The name of the tokens object to style video is VIDEO_STYLES.

You can not change the name of the tokens object.

Video component style can be configured through the variant prop:

  • Variant: modify the styles of the Video.

The structure of the VIDEO_STYLES object is:

Variants

Variants can modify the styles for the Video.

The tokens used are:

12345678910
const VIDEO_STYLES = {
  [VARIANT]: {
    progressBarVariant?: string;
    progressBarSize?: string;
    container?: CommonStyleType;
    videoContainer?: CommonStyleType;
    videoElement?: CommonStyleType;
    subtitles?: CommonStyleType &
        TypographyTypes & {
         padding_bottom?: string;

Example

video theme object example:

12345678910
const VIDEO_STYLES = {
  [VARIANT]: {
    progressBarVariant: 'INTERACTIVE',
    progressBarSize: 'MEDIUM',
    buttonsContainer: {
      padding: 'padding',
      background_color: 'background-color',
      justify_content: 'justify-content',
      width: 'width',
      MOBILE: {

Types

12345678910
type MediaButtonType = {
  variant?: string;
  color?: string;
  backgroundColor?: string;
  size?: \{ [key in DeviceBreakpointsType]?: MediaButtonSizeType \};
};
type SkeletonType = {
  width?: string;
  height?: string;
  variant?: string;