1.0.15 • Published 2 years ago

react-thermometer-component-2 v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

A React Thermometer Component

Install

$ npm i react-thermometer-component

Usage

import React from 'react'
import { render } from 'react-dom'
import Thermometer from 'react-thermometer-component'

render(
  <Thermometer
    theme="light"
    value="18"
    max="100"
    steps="3"
    format="°C"
    size="large"
    height="300"
  />
, document.getElementById('container'))

API:

ParamTypeDescriptionExampleDefault
themeStringLight or Darktheme="light"light
valueNumberTemperature valuevalue={27}0
maxNumberMaximum value of thermometermax={100}100
stepsNumberThermometer dividerssteps={3}0
formatStringDegrees formatformat="°C"''
sizeStringThermometer size. Can be small, normal or largesize="large"normal
heightNumberThermometer heightheight={300}200
reverseGradientbooleanReverse the gradientreverseGradient={true}false

Contributors

I have forked and updated this project. The original project is https://github.com/zamarrowski/react-thermometer-component.

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago