uibrik

Pixel Bot

Preview

Customize

smile
16px

Usage

import { PixelGrid } from "@/components/uibrik/pixel-bot/pixel-grid";

<PixelGrid frames={frames} />

Installation

npx shadcn@latest add https://uibrik.com/r/pixel-bot.json
Adds the files to components/uibrik/pixel-bot. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/pixel-bot.

Props

PixelGrid
cellSizeClassName
Type "size-3" | "size-4" | "size-5" | "size-6"
"size-4"
Size class of one pixel.
framesrequired
Type readonly AnimatedFrame[]
–
Frames to play, e.g. PIXEL_PATTERNS.smile.
activeClassName
Type string
"bg-zinc-900 dark:bg-zinc-100"
Classes for lit pixels.
inactiveClassName
Type string
"bg-zinc-200 dark:bg-zinc-800"
Classes for unlit pixels.