This package has been deprecated

Author message:

erronous version

react-components-retest

1.0.5 • Public • Published

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

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;

Readme

Keywords

none

Package Sidebar

Install

npm i react-components-retest

Weekly Downloads

11

Version

1.0.5

License

none

Unpacked Size

14.9 MB

Total Files

258

Last publish

Collaborators

  • anuprita.w