@yichend/yi-pixel-component
v0.0.23
Published
A pixel-style React UI component library.
Maintainers
Readme
# 🧱 @yichend/yi-pixel-component
A **pixel-style React UI component library** inspired by retro games. Carefully crafted with sharp edges, monospace fonts, and low-res aesthetics. Perfect for building nostalgic UIs or game-like web interfaces.
[](https://www.npmjs.com/package/@yichend/yi-pixel-component)
[](LICENSE)
---
## 📦 Installation
Using **npm**:
```bash
npm install @yichend/yi-pixel-componentUsing yarn:
yarn add @yichend/yi-pixel-componentUsing pnpm:
pnpm add @yichend/yi-pixel-component🚀 Quick Start
- Import
Press Start 2Pfont (required for pixel look):
import '@fontsource/press-start-2p'; // optional, but recommended- Import components you need:
import { YiButton, Checkbox, ColorPicker } from '@yichend/yi-pixel-component';- Use in JSX:
<YiButton>Start Game</YiButton>
<Checkbox value="apple" checked={true} onChange={() => {}}>
Apple
</Checkbox>
<ColorPicker defaultValue="#fa8c16" onChange={(color) => console.log(color)} />🧩 Available Components
| Component | Description |
| ------------- | ------------------------------------------ |
| YiButton | Pixel-style button with press feedback |
| Anchor | Floating anchor/navigation widget |
| Icon | Pixel-style SVG icon renderer |
| Breadcrumb | Breadcrumb with dropdown overflow support |
| Dropdown | Basic dropdown and dropdown item |
| Menu | Horizontal/vertical menu with icon/label |
| Pagination | Pagination bar with controls and inputs |
| Steps | Multi-step progress indicator |
| Tabs | Tab component with scroll/overflow support |
| Radio | Pixel-style radio buttons |
| Checkbox | Checkbox with indeterminate and select-all |
| ColorPicker | Full-featured pixel-style color selector |
📌 More components in development...
🧱 Pixel Design Principles
- Retro pixelated UI using
Press Start 2PorArk Pixelfont - Pure CSS pixel borders and shadows
- No external UI dependencies
- Designed for React 18+
🧪 Development
To run locally:
pnpm install
pnpm devTo view Storybook:
pnpm storybookTo build:
pnpm build📘 License
MIT © Yichend
