Socket
Socket
Sign inDemoInstall

@paraboly/pwc-animated-checkbox

Package Overview
Dependencies
15
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paraboly/pwc-animated-checkbox

Stencil Component Starter


Version published
Maintainers
2
Install size
0.973 MB
Created

Readme

Source

Built With Stencil

WebComponent PWC animated-checkbox

Fully customizable animated-checkbox web component with StencilJS via Paraboly

npm version npm Platform - Platform Free Web License: MIT

Basic animated-checkbox Screenshots

WebComponent PWC Animated Checkbox WebComponent PWC Animated Checkbox

Installation

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script type="module" src="https://unpkg.com/@paraboly/pwc-animated-checkbox@0.0.1/dist/pwc-animated-checkbox/pwc-animated-checkbox.esm.js"></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @paraboly/pwc-animated-checkbox --save
  • Put a script tag similar to this <script src='node_modules/@paraboly/pwc-animated-checkbox/dist/pwc-animated-checkbox.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install @paraboly/pwc-animated-checkbox --save
  • Add an import to the npm packages import @paraboly/pwc-animated-checkbox;
  • Then you can use the element anywhere in your template, JSX, html etc

Usage

Basic animated-checkbox Usage

<pwc-animated-checkbox checkboxText="Hello Checkbox" isChecked></pwc-animated-checkbox>

Checkbox onCheckChange Listener Usage

JS Way

Also you can put this code into your html inside script tags. You can check the example as index.html

// Multiple Checkboxes
const pwcCheckboxes = document.querySelectorAll("pwc-animated-checkbox");
pwcCheckboxes.forEach(element => {
  element.addEventListener("checkedEvent", event => {
    console.log("Event: ", event.detail);
  });
})  
// Selects the first checkbox
const pwcCheckbox = document.querySelector("pwc-animated-checkbox");
pwcCheckbox.addEventListener("checkedEvent", event => {
console.log("First Element Event: ", event.detail);

Future Plans

  • Color Customization
  • Animation Bug Fix

Authors

FreakyCoder, kuray.ogun@paraboly.com | kurayogun@gmail.com

License

WebComponent PWC animated-checkbox is available under the MIT license. See the LICENSE file for more info.

FAQs

Last updated on 16 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc