GithubHelp home page GithubHelp logo

react-thermometer's Introduction

React Thermometer

a simple thermometer style component for react

Install

npm install react-thermometer --save

Demo

Click here

Required Props

height

pixel height of thermometer

width

pixel width of the thermometer (note base of thermometer = width*2.5)

min

the number to represent the lowest point on the thermometer, effectively the 0 point.

max

the number that represents your thermometer at 100% full

current

current position of thermometer

fillColor

the fill color of the thermometer.

backgroundColor

the background color of the thermometer.

Use

import React From "react";
import Thermometer from "react-thermometer";
const MyThermometer = () => {
	<div>
		<Thermometer
				min={0}
				max={30}
				width={20}
				height={300}
				backgroundColor={'blue'}
				fillColor={'green'}
				current={10}
		/>
	</div>	
}

react-thermometer's People

Contributors

conorhastings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-thermometer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.