Documentation
EioGrindingBall
Ender IO grinding ball durability bar: 4×16 filled bottom-up and clipped by durability.
import { gui } from "@tennantite/ui";
import { EioGrindingBall } from "./index";
export function EioGrindingBallDemo() {
return (
<div style={{ height: gui(16), position: "relative", width: gui(4) }}>
<EioGrindingBall durability={0.7} left={0} top={0} />
</div>
);
}
Install
$pnpm add @tennantite/enderionpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/enderio/src/eio-grinding-ball/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.