OrcDev

8bit Dialogue

Component

About

An 8-bit RPG-style dialogue box pairing a pixel-framed avatar with a retro alert speech bubble, supporting left-aligned player and right-aligned NPC layouts via the player prop.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 8bit Dialogue to your project and fits it to your theme.

Code

How 8bit Dialogue is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import Dialogue from "@/components/ui/8bit-dialogue";

export default function Default() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center bg-background p-8 retro">
      <div className="py-4 flex flex-col gap-4 w-full max-w-[500px]">
        <Dialogue
          avatarSrc="/images/pixelized-8bitcnorc.jpg"
          avatarFallback="Orc"
          title="Orc"
          description="I bring you a gift… it's called AXE TO THE FACE! SLASH!!"
        />
        <div className="flex justify-end">
          <Dialogue
            avatarSrc="/images/goblin.png"
            avatarFallback="Goblin"
            title="Goblin"
            description="`Screeches like a dying flute`"
            player={false}
          />
        </div>
      </div>
    </div>
  );
}

More by OrcDev

View all
  • 8bit CTA 1 — Comparison

    8bit CTA 1 — Comparison

    295
  • 8bit 404 Page

    8bit 404 Page

    172
  • 8bit Loading Screen

    8bit Loading Screen

    104
  • 8bit Changelog

    8bit Changelog

    75
  • 8-bit Login Form

    8-bit Login Form

    59
  • 8bit FAQ 2 — Card Grid

    8bit FAQ 2 — Card Grid

    57
  • 8-bit Stats Dashboard

    8-bit Stats Dashboard

    55
  • 8bit Timeline Horizontal

    8bit Timeline Horizontal

    54