0.1.14 • Published 2 years ago

react-predefined-color-picker v0.1.14

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-predefined-color-picker

:construction: Under development :construction:

A tiny color predefined picker component for React and Preact apps

NPM JavaScript Style Guide

npm.io

Install

npm install --save react-predefined-color-picker

Usage

import React, { Component } from 'react'

import ColorPredefinedPicker from 'react-predefined-color-picker'

function Example() {
  function handleColorChange(color) {
    console.log(color)
  }

  return(
    <ColorPredefinedPicker onChange={(color) => handleColorChange(color)} />
  )
}

Props

PropTypeRequiredDefaultNote
onChangeEventHandlerYesEvent Handler
colorsArray of stringNoArray of strings containing colors. Eg: ["red", "blue", "#2668CA", "rgb(30, 40, 50)"]
sizestringNomediumSize. Possible options are: small, medium, large
columnsnumberNo3Number of columns

License

MIT © israelpossoli

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago