Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Pixel press button

An 8-bit style button with a thick black outline and a hard offset shadow that presses fully into the shadow and pops a +1 coin on every press.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/pixel-button.json

2. Use it

Every prop is optional
app/page.tsx
import PixelButton from "@/components/pixel-button";

export default function Page() {
  return <PixelButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A square-cornered yellow (#facc15) button with a 3px near-black outline, uppercase monospace text and a 6px hard shadow down and right, on a pale yellow checkerboard.
  2. Hover lifts it 2px with an 8px shadow; pressing pushes it 6px into its shadow so the shadow disappears.
  3. Each press pops a +1 above the button in stepped motion and adds to a COINS counter above it.

How it behaves

  • Each click adds exactly one to the counter, which is announced.
  • The pressed state moves the button fully into its shadow.
  • Focus shows a dashed outline offset from the button.
  • The +1 pop is hidden under reduced motion; the counter still updates.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component