Socket
Socket
Sign inDemoInstall

@paraboly/pwc-color-picker

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paraboly/pwc-color-picker

Fully customizable pwc-color-picker web component with StencilJS via Paraboly


Version published
Maintainers
3
Created
Source

Built With Stencil

WebComponent PWC Color Picker

Fully customizable pwc-color-picker web component with StencilJS via Paraboly

npm version npm Platform - Platform Free Web License: MIT

Basic pwc-color-picker Screenshots

WebComponent PWC Color Picker WebComponent PWC Color Picker

Live Codepen Example

Installation

Script tag

  • Put a script tag similar to this <script type="module" src="https://unpkg.com/@paraboly/pwc-color-picker@latest/dist/pwc-color-picker/pwc-color-picker.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-color-picker --save
  • Put a script tag similar to this <script src='node_modules/@paraboly/pwc-color-picker/dist/pwc-color-picker.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-color-picker --save
  • Add an import to the npm packages import @paraboly/pwc-color-picker;
  • Then you can use the element anywhere in your template, JSX, html etc

Usage

<pwc-color-picker
  colors='["#951955","#130394","#444444","#989898", "#101516"]'
></pwc-color-picker>

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

const component = document.querySelector("pwc-color-picker");
component.addEventListener("colorPickedEvent", event => {
  console.log("Event: ", event.detail);
});
component.colors = ["#989898", "#101516", "#951955", "#130394", "#444444"];

Authors

Şevval Eygül

License

WebComponent PWC Color Picker is available under the MIT license. See the LICENSE file for more info.

Keywords

FAQs

Package last updated on 27 Jan 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