@petx/react
v0.1.0
Published
React component for rendering animated Codex pet spritesheets.
Downloads
89
Maintainers
Readme
@petx/react
React renderer for animated Codex pet spritesheets.
npm i @petx/reactimport { PetX } from '@petx/react';
import '@petx/react/styles.css';
export function Preview() {
return <PetX src="/pets/frieren/spritesheet.webp" animation="idle" size={192} />;
}Use animation, frame, playing, frameInterval, atlas, animations, offsetX, and offsetY to tune playback and alignment.
