0.9.0 • Published 7 years ago
embed-widget v0.9.0
📦 Embed widget
Install the library as a dependency:
npm install embed-widgetOr, if you're using Yarn:
yarn add embed-widgetThen import the library:
import widget from "embed-widget";And initialize it with an optional selector:
const embed = new widget("https://example.com", "Button text!");You can also use a CDN:
<script src="https://unpkg.com/embed-widget"></script>0.9.0
7 years ago