Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 851 Bytes

getting-started.md

File metadata and controls

26 lines (19 loc) · 851 Bytes

Install

$ npm install --save tui-color-picker # Latest version
$ npm install --save tui-color-picker@<version> # Specific version

It can also be installed by using bower or downloaded by CDN. Please refer to the 💾 Install.

Usage

import colorPicker from 'tui-color-picker';
import 'tui-color-picker/dist/tui-color-picker.css';

const colorpicker = colorPicker.create({
  container: document.getElementById('color-picker-container'),
  color: '#f9f9f9',
  preset: ['#181818', '#292929', '#393939'],
  ...
});

It can also be used by namespace or CommonJS module. Please refer to the 🔨 Usage.

For more information about the API, please see here.