• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

Embed

Create responsive video or slideshow embeds based on the width of the parent by creating an intrinsic ratio that scales on any device.


Usage

Example


Script


  return (
    <CEmbed
      ratio="16by9"
    >
      <iframe src="https://www.youtube.com/embed/ctV1-yIzZzU" />
    </CEmbed>
  )
  


# Features

  • Simple wrapper for external source videos
  • Optional aspect ratios

# Embed API

NameRequiredTypeDefault Value
taganydiv
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
ratio(21by9 | 16by9 | 4by3 | 1by1)16by9
aspect ratio of embedded element, valid values: '21by9', '16by9', '4by3', '1by1'



EmbedItem


# EmbedItem API

NameRequiredTypeDefault Value
taganyiframe
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
type(iframe | embed | video | object | img)
value for type attribute

  • Components
    • Usage
      • Features
      • API
    • Related
      • CEmbed
      • CEmbedItem
CoreUI © 2020 creativeLabs.core-logo