npm.io
1.0.2 • Published 7 years ago

react-dp-thai

Licence
ISC
Version
1.0.2
Deps
2
Size
4 kB
Vulns
0
Weekly
0

React Color Component

Installation

npm install --save react-dp-thai

How To Use

First import this component where you want to use it

import ApiwatDatepicker from "react-dp-thai"

Then just renders it

<ApiwatDatepicker />

Props
Prop Description Default value
color Sets background color blue
width Sets width 100
height Sets height 100
text Sets inner text empty string
Example
import React, { Component } from "react";
import ReactColorSquare from "react-color-square";

class App extends Component {
  render() {
    return (
        <ReactColorSquare height={150} color="red" text="Hello World!" />
    );
  }
}

export default App;