New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

web-frame-lib

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-frame-lib

Web Frame lib allows you to easily integrate your bots, dynamic pages and other with button trigger based architecture into you apps.

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source


Web Frame lib


Web Frame lib allows you to easily integrate your bots, dynamic pages and other with button trigger based architecture into you apps.

How to use?

  • Install web-frame-lib package from npm

    npm i web-frame-lib
    
  • Adding to your Project

    import { useEffect } from 'react';
    import { initWebFrame } from 'web-frame-lib';
    
    const App = () => {
    
        //  this will mount it after page render
        useEffect(()=>{
            initWebFrame({
                url: 'https://your-website.com',
            })
    
            // other options available below in Readme
        },[]);
    
        return(
            <>Hello</>
        )
    }
    
    
  • That's all your chatbot, message service or whatever you ahve done is now availabe in your app with just a click of button.

Options

  • Edit config object

    initWebFrame({
        url: 'https://your-website.com',
        config: {
            activatorText: `Chat With US`, //default
            closeText: `Close`, //default
            color: `#000`,  //default
            backgroundColor: `#fff`,    //default
            wfl_css: wfl_css,  //default
            css: ``,   // add custom css triggering classes inside
        },
        executeAfterWfl: (config, button) => {
            //  this will execute within scope of this script so that you can perform additional actions
            console.log('executeAfterWfl', config, button)
        },    
    })
    

Styling

iddescription
wfl-cta-buttonPrimary Triggering button
wfl-crossCross button on mobile ui (ful screen)
wfl-frameiframe container
  • to apply additional customization you can pass a string of all css inside config object

Package Developed by Pushkar Yadav. For Support please contact here

Keywords

web

FAQs

Package last updated on 08 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts