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

@ptp-us/power-the-polls-form

Package Overview
Dependencies
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ptp-us/power-the-polls-form

Power the Polls Volunteer Form

  • 0.9.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
90
increased by2.27%
Maintainers
1
Weekly downloads
 
Created
Source

Power the Polls

This is a custom web component that allows our partners to embed the Power the Polls signup form on their own web sites and intranets. Contact info@powerthepolls.org to discuss any partnerships.

How to embed

HTML

Include the latest version:

  <script type="module" src="https://unpkg.com/@username/power-the-polls-form@1.0.0/power-the-polls-form.js"></script>

Reference it like any other HTML element:

<power-the-polls-form
  destination="http://optional-form-target-here"
  custom-form-field-label="Label for your own custom field here"
/>

React

In your index.tsx

Add the following code to initialize the form and load any polyfills if necessary (this will ensure that all browsers from IE 11+ will work with the form).

import { applyPolyfills, defineCustomElements } from "power-the-polls-form/dist/loader";

applyPolyfills().then(() => {
   defineCustomElements();
});

A complete example:

import React from "react";
import ReactDOM from "react-dom";
import App from "./components/App/App.jsx";
import { applyPolyfills, defineCustomElements } from "power-the-polls-form/dist/loader";

applyPolyfills().then(() => {
   defineCustomElements();
});

ReactDOM.render(<App />, document.getElementById("root"));
In your JSX/HTML

Note that in our testing attribute names must be kebab-case and not camelCase

<power-the-polls-form
  destination="http://optional-form-target-here"
  custom-form-field-label="Label for your own custom field here"
/>

FAQs

Package last updated on 11 Aug 2020

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