@moon-inferno/react
v0.4.3
Published
Accessibility-first, expressive React UI component library for retro, Y2K, CRT, and cyberpunk web applications.
Maintainers
Readme
@moon-inferno/react
Expressive web design meets 100% WCAG 2.1 AA accessibility compliance.
📦 Installation
npm install @moon-inferno/react @moon-inferno/themes @moon-inferno/icons🎮 Accessible Signature Primitives
<MoonTypewriterDialogue>: RPG speech dialogue box with typewriter letter reveal & immediate screen reader fallback (aria-live="polite").<MoonRPGGrid>: Pixel art 2D inventory slot grid for game items & NFTs with 2D arrow key navigation.<MoonHealthMeter>: Animated gaming Health, Mana, Stamina, and Shield bars built natively on HTML5<meter>.<MoonSafeGlitch>: Cyberpunk RGB split glitch text with automatic(prefers-reduced-motion: reduce)protection.<MoonConsoleLogger>: CRT phosphor green console stream for Web3 transactions or server logs.<CyberCanvas>: HTML5 drawing canvas with pixel grid overlay, neon palette, custom color picker, and PNG export.<SheetEditor>: Retro CRT text editor notepad with line numbers gutter and Markdown preview.<Table>: Cyberpunk WAI-ARIA data table primitive.
⚡ Quickstart
import '@moon-inferno/react/styles.css';
import { MoonProvider, MoonTypewriterDialogue, MoonHealthMeter, MoonRPGGrid } from '@moon-inferno/react';
export default function App() {
return (
<MoonProvider defaultTheme="moon-inferno">
<MoonTypewriterDialogue speaker="COMMANDER" text="Subsystems operational." />
<MoonHealthMeter type="health" value={90} max={100} label="HP (HEALTH)" />
<MoonRPGGrid columns={5} totalSlots={10} />
</MoonProvider>
);
}📖 Official Documentation
- Live Playground & Website: https://biagio-scaglia.github.io/moon-inferno/
- GitHub Repository: https://github.com/biagio-scaglia/moon-inferno
Distributed under the MIT License. Created by Biagio Scaglia.
