New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-color-square

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-color-square

`npm install --save react-color-square`

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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;

FAQs

Package last updated on 13 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts