New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →
Socket
Sign inDemoInstall
Socket

announcekit-react

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

announcekit-react

Use AnnounceKit widgets in your React App

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
decreased by-26.06%
Maintainers
1
Weekly downloads
 
Created
Source

The easiest way to use AnnounceKit widgets in your React App.

Visit https://announcekit.app to get started with AnnounceKit.

Live demo

Installation

yarn add announcekit-react

Usage

  import React from 'react';
  import AnnouncekitWidget from 'announcekit-react';

  class App extends React.Component {
    render() {
      return (
        <div>
          <nav>
          <ul>
            <li>Home</li>
            <li>Product</li>
            <li>News <AnnouncekitWidget widget="https://announcekit.app/widget/eL8Lm" /></li>
          <ul>
          </nav>
        </div>
        )
    }
  }

Props

Common props you may want to specify include:

  • widget - The url of the widget. You can obtain it while creating or editing widget in AnnounceKit Dashboard.
  • style - You can apply CSS rules to modify / tune the position of the widget.
  • catchClick - Element selector to catch clicks and open the widget.
  • floatWidget - Set true if the widget is a Float widget.
  • widgetInit - Called after the widget has been successfully loaded.
  • widgetOpen - Called when the widget is opened.
  • widgetClose - Called when the widget is closed.
  • widgetResize - Called when the widget is resized.
  • widgetUnread - Called when unread post count of widget has been updated.

Keywords

FAQs

Package last updated on 05 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc