Documentation
Ic2HeatGauge
IC2 heat gauge: grey track with a yellow fill clipped bottom-up.
import { Ic2HeatGauge } from "./index";
export function Ic2HeatGaugeDemo() {
return (
<div className="relative size-16">
<Ic2HeatGauge label="热量" left={8} max={1000} top={8} value={600} />
</div>
);
}
Install
$pnpm add @tennantite/ic2npm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ic2/src/ic2-heat-gauge/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.