ClickPowerUp

Get this button for GPUI

A bracketed button that arms on hover and powers up with an accent flash and bracket burst on every click.

Preview

Props

Install

npx shadcn@latest add @evilbuttons/click-powerup

Usage

import { ClickPowerUp } from "@/components/evil-buttons/click-powerup";

export function ButtonDemo() {
  return (
    <ClickPowerUp onClick={() => console.log("Powered up")}>
      Launch
    </ClickPowerUp>
  );
}

Variants

Custom accent

Swap the flash color and hold it a little longer.

Props

The component spreads native button props and forwards its ref to the button.

PropTypeDefaultDescription
childrenReact.ReactNode-The button label or content.
tapDurationnumber500Milliseconds the powered-up flash lasts after a click.
accentColorstring"#2CD4BD"Color of the powered-up flash.
onClick(event) => void-Fired on every click.
classNamestring-Extra classes passed to the button.

Good to know

  • Works in light and dark themes out of the box.
  • Touch skips hover and goes straight to the press.

Search docs

Jump to a button documentation page