Retro Pixel Button

A retro-styled animated button with a sliding pixel block, smooth transitions, and customizable colors.

Installation

pnpm dlx rareui add retro-pixel-button

Usage

1

Import the component

import RetroPixelButton from '@/components/rareui/retro-pixel-button';
2

Use in your application

export default function App() { return ( <RetroPixelButton onClick={() => alert('Clicked!')}> CLICK ME </RetroPixelButton> ); }

Features

Font-mono styling with pixelated arrow icon.

Props

PropTypeDefaultDescription
childrenReact.ReactNode"TRY..."The button text content.
pixelColorstring"orange"Color of the sliding pixel block.
baseColorstring-Optional background color override.
textColorstring-Optional text color override.
classNamestring-Additional CSS classes.