
Research
/Security News
Malicious Chrome and Firefox Extensions Steal Crypto Traders’ Session and Wallet Data
Malicious Chrome and Firefox extensions target Axiom Trade and Padre users, stealing session tokens and wallet data.
@kjanat/react-gauge-component
Advanced tools
A customizable gauge/speedometer component for React applications
A customizable, animated gauge/speedometer component for React applications. Perfect for dashboards, analytics displays, and progress indicators.
npm install @kjanat/react-gauge-component
# or
yarn add @kjanat/react-gauge-component
# or
pnpm add @kjanat/react-gauge-component
import { Gauge } from '@kjanat/react-gauge-component';
import '@kjanat/react-gauge-component/dist/styles.css';
function App() {
return <Gauge value={75} min={0} max={100} label="Performance" />;
}
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 2.5 | Current value to display |
min | number | 0 | Minimum value of the gauge |
max | number | 5 | Maximum value of the gauge |
label | string | '' | Label text displayed below the gauge |
displayType | 'percentage' | 'value' | 'custom' | 'percentage' | How to display the current value |
customDisplay | (value: number) => string | null | Custom function to format the display value |
tickInterval | number | 1 | Interval between tick marks |
showTicks | boolean | true | Whether to show tick marks and labels |
colors | string[] | ['#22c55e', '#10b981', '#84cc16', '#eab308', '#f59e0b', '#ef4444'] | Array of colors for gauge segments |
size | number | 300 | Width of the gauge in pixels |
thickness | number | 40 | Thickness of the gauge arc |
className | string | '' | Additional CSS class for styling |
<Gauge value={3.5} min={0} max={5} label="Score" />
<Gauge value={75} min={0} max={100} label="Progress" displayType="percentage" />
<Gauge
value={85}
min={0}
max={100}
label="Speed"
displayType="custom"
customDisplay={(val) => `${val} km/h`}
/>
<Gauge
value={7}
min={0}
max={10}
label="Rating"
colors={['#ef4444', '#f59e0b', '#22c55e']}
tickInterval={2}
/>
// Small gauge
<Gauge value={50} size={200} thickness={30} />
// Large gauge
<Gauge value={50} size={400} thickness={60} />
The component comes with default styles that you need to import:
import '@kjanat/react-gauge-component/dist/styles.css';
You can override the default styles using the className prop or by targeting the component's CSS classes:
.gauge-container - Main container.gauge-svg - SVG element.gauge-tick-label - Tick mark labels.gauge-value - Value display.gauge-label - Label text# Install dependencies
pnpm install
# Run development server with examples
pnpm dev
# Build the library
pnpm build:lib
# Type checking
pnpm type-check
MIT © Kaj Kowalski
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)FAQs
A customizable gauge/speedometer component for React applications
The npm package @kjanat/react-gauge-component receives a total of 3 weekly downloads. As such, @kjanat/react-gauge-component popularity was classified as not popular.
We found that @kjanat/react-gauge-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Malicious Chrome and Firefox extensions target Axiom Trade and Padre users, stealing session tokens and wallet data.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.