https://github.com/paraboly/pwc-color-picker
Fully customizable color-picker web component with StencilJS via Paraboly
https://github.com/paraboly/pwc-color-picker
Last synced: 8 months ago
JSON representation
Fully customizable color-picker web component with StencilJS via Paraboly
- Host: GitHub
- URL: https://github.com/paraboly/pwc-color-picker
- Owner: Paraboly
- License: mit
- Created: 2019-11-01T10:04:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:35:35.000Z (over 3 years ago)
- Last Synced: 2025-03-21T21:11:56.096Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://paraboly.com
- Size: 1.06 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://github.com/Paraboly/pwc-color-picker)
[](https://www.npmjs.com/package/@paraboly/pwc-color-picker)
[](https://www.npmjs.com/package/@paraboly/pwc-color-picker)

[](https://opensource.org/licenses/MIT)
## Basic pwc-color-picker Screenshots
## [Live Codepen Example](https://codepen.io/starikcetin/pen/XWJGxqb)
## Installation
### Script tag
- Put a script tag similar to this `` 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 `` 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
```html
```
## 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
```js
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.