0.1.18 • Published 1 year ago

quick-gauge v0.1.18

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

quick-gauge

A very simple gauge without the fuss. An immediate solution for immediate needs.

Install

npm install quick-gauge

Demo

https://codesandbox.io/s/guage-q7bghr?file=/src/App.js

Available Parameters

ParamDescriptionuseage
meterColorDefine a colour for the active part of the gauge.meterColor ="#0113B3"
backgroundColorDefine a colour for the non-active background of the gauge.backgroundColor ="#6B7AFF"
innerColorThis is the colour on the inner mask area of the gauge. You can change default white to another colour.innerColor ="red"
value ** Required. This sets the meter value set as a percentage (ideally a number between 1 - 100)value="23"
sizeCustom size override for gauge. A higher number decreases the gauge size whilst lower number increase size.size="12"
suffixOptional addition for value, sits to the left of the output value.suffix="%"

Getting Started

import Index from "./guage";

export default function App() {
    return (
        <>
            <Guage
                value="33"
                size=6
            />
        </>
    );
}

Basic

<Guage
    value="33"
/>

Advanced

<Guage
    meterColor="#0113B3"
    backgroundColor="#6B7AFF"
    innerColor="#fff"
    value="46"
    size=12
    suffix="%"
/>
0.1.18

1 year ago

0.1.17

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago