Skip to content

This is a thermometer component for React apps.

Notifications You must be signed in to change notification settings

m1520n/react-thermo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to react-thermo 👋

Version License: MIT

React Thermometer Component for React Apps

React Thermo

Install

yarn add react-thermo

Usage

import Thermo from 'react-thermo'

  <Thermo
    min={-50}
    max={50}
    temperature={25}
  >

Props

Props Type Default Description
temperature number - temperature value (required)
min number -50 base temperature
max number 50 maximum temperature
zones number[] [0, 25] Define medium and high temperature zones. lowTemperatureColor property will be used below the first value, mediumTemperatureColor will be used above the first value and highTemperatureColor will be used above the second value from zones array
glassColor string #bdc3c7 set thermometer glass color
mercuryPipeColor string #ecf0f1 set mercuty pipe color
lowTemperatureColor string #3498db set mercury color from low temperature
mediumTemperatureColor string #e67e22 set mercury color from medium temperature
highTemperatureColor string #c0392b set mercury color from high temperature
highlightColor string #fff set glass highlight color

Author

👤 Michał Winiarski michal.winiarski@devbrains.pl

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator


About

This is a thermometer component for React apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published