setTemp(Math.round(newTemp))}
pointer={{ type: 'needle', hideGrabHandle: false }}
labels={{
valueLabel: { formatTextValue: (v) => `${Math.round(v)}°C` },
}}
/>
Set temperature: {temp}°C
);
}
```
--------------------------------
### Exported TypeScript Types for GaugeComponent
Source: https://context7.com/antoniolago/react-gauge-component/llms.txt
Imports all available interfaces from the react-gauge-component library for use in TypeScript projects. Demonstrates typed configuration objects for arcs and pointers.
```tsx
import {
GaugeComponent,
GaugeComponentProps,
GaugeType,
Arc,
SubArc,
Labels,
ValueLabel,
PointerProps,
PointerType,
PointerContext,
PointerRef,
Tick,
TickLabels,
TickLineConfig,
TickValueConfig,
Tooltip,
Angles,
Dimensions,
Margin,
} from 'react-gauge-component';
// Typed configuration objects
const arcConfig: Arc = {
width: 0.25,
padding: 0.01,
cornerRadius: 2,
subArcs: [
{ limit: 33, color: '#5BE12C' },
{ limit: 66, color: '#F5CD19' },
{ color: '#EA4228' },
],
};
const pointerConfig: PointerProps = {
type: 'needle' as PointerType,
animate: true,
elastic: false,
animationDuration: 2000,
maxFps: 60,
};
const props: Partial