Getting Started
@fun-gauge/react:
Section titled “@fun-gauge/react:”- 120 fps
- lightweight 7.5kB min gizp
- customization
- responsive design
- typescript
How to use?
Section titled “How to use?”-
Install
@fun-gauge/react
:Terminal window npm install @fun-gauge/reactTerminal window pnpm add @fun-gauge/reactTerminal window yarn add @fun-gauge/react -
Use the component:
import Gauge from '@fun-gauge/react'export default function MyGauge(props: Props) {const { title = 'Hello Gauge', value = 60 } = propsreturn (<div className='flex flex-col items-center bg-[#eff1f5]'><h4 className='text-[#222]'>{title}</h4><Gauge value={value} /></div>)}