DraggableEmbed
API reference for the DraggableEmbed component.
The DraggableEmbed component has been deprecated. Instead, use the EmbedCard(opens in a new tab or window) component.
Usage
import React from "react";import { DraggableEmbed } from "components/draggable_embed";export function App() {return (<DraggableEmbedembedUrl="https://www.youtube.com/embed/L3MtFGWRXAA"previewUrl="https://www.canva.dev/example-assets/images/puppyhood.jpg"previewSize={{ width: 320, height: 180 }}title="Heartwarming Chatter: Adorable Conversation with a Puppy"subtitle="Puppyhood"/>);}
TSX
Props
embedUrlstringRequired
The URL of the embeddable media.
This URL must be supported by Iframely. To learn more, see What URLs to send to Iframely(opens in a new tab or window).
previewUrlstringRequired
The URL of a thumbnail image.
previewSizestringRequired
The dimensions of the preview image, in pixels.
titlestringRequired
A human-readable title for the embed.
subtitlestringOptional
A human-readable subtitle for the embed.