# Embed

# Usage

Examples
<template>
  <CEmbed
    tag="p"
    aspect="16by9"
    src="https://www.youtube.com/embed/kS2rLOF5has"
    frameborder="0"
    allow="accelerometer;autoplay; encrypted-media; gyroscope; picture-in-picture"
  />
</template>

# Features

  • Simple wrapper for external source videos.
  • Optional aspect ratios.

# CEmbed API

Name
Default
Type
tag 'div' String
HTML tag of embedded content wrapper
type 'iframe' String
Html content wrapper. Valid values: 'iframe', 'embed', 'video', 'object', 'img'.
ratio '16by9' String
Aspect ratio of embedded element. Valid values: '21by9', '16by9', '4by3', '1by1'.