DraggableEmbed
API reference for the DraggableEmbed 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="Pupppyhood"/>);}
tsx
Props
Required
The URL of the embeddable media.
Required
The URL of a thumbnail image.
Required
The dimensions of the preview image, in pixels.
Required
A human readable title for the embed.
Optional
A human readable subtitle for the embed.