1.0.4 • Published 5 years ago

react-components-callout v1.0.4

Weekly downloads
16
License
-
Repository
-
Last release
5 years ago

React Color Component

Installation

npm install --save react-color-square

How To Use

First import this component where you want to use it

import ReactColorSquare from "react-color-square"

Then just renders it

<ReactColorSqaure />

Props

PropDescriptionDefault value
colorSets background colorblue
widthSets width100
heightSets height100
textSets inner textempty 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;