@social-embed/wc
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-next.8 • Public • Published

<o-embed> · GitHub license npm version

Web component for URLs of embed-friendly sites such YouTube, Spotify, Vimeo, and so on.

  • Works any you can use HTML.

    Web components are a browser friendly.

  • No server or service required

    URL patterns and ID extraction handled by a separate client-based, browser-friendly package - @social-embed/lib - which can even be used independently.

Demo

Examples

Usecases

Tech

Built in LitElement w/ lit-html + TypeScript. View the source on GitHub.

Compare to thangman22/oembed-component.

Setup

Install dependencies:

npm i @social-embed/wc
yarn add @social-embed/wc

Usage

<o-embed url="https://www.youtube.com/watch?v=G_QhTdzWBJk"></o-embed>

Similar tools

/@social-embed/wc/

    Package Sidebar

    Install

    npm i @social-embed/wc

    Weekly Downloads

    604

    Version

    0.1.0-next.8

    License

    MIT

    Unpacked Size

    110 kB

    Total Files

    20

    Last publish

    Collaborators

    • tony