@pluginjs/gradient-picker
v0.8.19
Published
A flexible modern gradient-picker js plugin.
Downloads
23
Readme
GradientPicker
A flexible modern gradient-picker js plugin.
Introduction
Installation
Yarn
yarn add @pluginjs/gradient-picker
NPM
npm i @pluginjs/gradient-picker
Getting Started
CDN:
Development:
<script src="https://unpkg.com/@pluginjs/gradient-picker/dist/gradient-picker.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/gradient-picker/dist/gradient-picker.css">
Production:
<script src="https://unpkg.com/@pluginjs/gradient-picker/dist/gradient-picker.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/gradient-picker/dist/gradient-picker.min.css">
Initialize
HTML:
<div class="element"></div>
ECMAScript Module:
import GradientPicker from "@pluginjs/gradient-picker"
import "@pluginjs/gradient-picker/dist/gradient-picker.css"
GradientPicker.of(document.querySelector('.element'), options)
CommonJS:
require("@pluginjs/gradient-picker/dist/gradient-picker.css")
const GradientPicker = require("@pluginjs/gradient-picker")
GradientPicker.of(document.querySelector('.element'), options)
Browser:
<link rel="stylesheet" href="https://unpkg.com/@pluginjs/gradient-picker/dist/gradient-picker.css">
<script src="https://unpkg.com/@pluginjs/gradient-picker/dist/gradient-picker.js"></script>
<script>
Pj.gradientPicker('.element', options)
</script>
Browser support
Tested on all major browsers.
| IE / Edge | Firefox | Chrome | Safari | Opera | | --------- | --------- | --------- | --------- | --------- | | IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|
License
@pluginjs/gradient-picker is Licensed under the GPL-v3 license.
If you want to use @pluginjs/gradient-picker project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us [email protected].
Copyright
Copyright (C) 2022 Creation Studio Limited.