- Primary
- Secondary
- Danger
- Ghost
The default variant. Magenta background with a magenta glow, transitions to cyan on hover.
PixelButton is a Framer Motion button with pixel-art borders and four neon glow variants: primary, secondary, danger, and ghost for React.
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/developer-exe/llms.txt
Use this file to discover all available pages before exploring further.
PixelButton wraps a native <button> element inside Framer Motion’s motion.button to deliver tactile scale animations on hover and press. It applies a pixel-art border treatment via the pixel-border utility class and exposes four named colour variants that map to the developer.exe neon colour palette. All standard HTML button attributes — including type, disabled, onClick, aria-*, and form — are forwarded directly to the underlying element through prop spreading.
motion.button element. Plain strings are most common; icons and short JSX are also supported.type, disabled, onClick, form, aria-label, etc.) are forwarded to the underlying motion.button element via spread.| Variant | Resting background | Text colour | Hover background | Glow colour |
|---|---|---|---|---|
primary | #ff2bd6 (neon-magenta) | white | #22d3ee (neon-cyan) | rgba(255,43,214,0.5) |
secondary | #0f1b36 (arcade-navy) | #22d3ee (neon-cyan) | #22d3ee (neon-cyan) | rgba(34,211,238,0.3) |
danger | #06070d (arcade-black) | #39ff14 (neon-green) | #39ff14 (neon-green) | — (border only) |
ghost | transparent | #fde047 (neon-yellow) | rgba(253,224,71,0.2) | — |
PixelButton uses Framer Motion’s whileHover and whileTap gesture props on the underlying motion.button:
whileHover={{ scale: 1.05 }} — the button scales up 5% when the pointer enters, giving a satisfying “press ready” affordance.whileTap={{ scale: 0.95 }} — the button scales down 5% while the pointer button is held, simulating physical depression.transition config is required. Colour changes between resting and hover states are governed by the Tailwind transition-colors duration-200 classes applied to every button.
pixel-border class applies a multi-layered box-shadow to simulate a chunky pixel-art button border. Its exact definition lives in the global stylesheet — see the Color System docs for the full token reference.PixelButton works as a drop-in submit control inside any <form>: