next-elfsight-widget
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

next-elfsight-widget

npm

Wrapper over react-elfsight-widget that adds Elfsight Widget to a NextJS App t dynamic.

This package DOES NOT contain any Elfsight Widgets itself.

Installation

npm install next-elfsight-widget

Usage

import React from 'react';
import { ElfsightWidget } from 'next-elfsight-widget';

function Component() {
  return <ElfsightWidget widgetID="6f4fc62b-74c9-45da-87fa-b71eda360cc0" />;
}

NOTE: There is no need to manually add Elfsight's platform.js script to a page, the component will do it for you. But if you already have it on the page, it's okay, the script won't be added twice.

/next-elfsight-widget/

    Package Sidebar

    Install

    npm i next-elfsight-widget

    Weekly Downloads

    421

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    192 kB

    Total Files

    14

    Last publish

    Collaborators

    • welcomemax