Measured entry

tripled-scale-hover-button-shadcnui

buttonminimal-flatmotion on file

A client-side React button that grows on hover and contracts on press using Framer Motion spring gestures. It ships as a shadcn registry item with a centered wrapper, Tailwind utility classes, and theme color variables. The source exposes a fixed demo button rather than a reusable prop-driven API.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-scale-hover-button-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-scale-hover-button-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-scale-hover-button-shadcnui at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for tripled-scale-hover-button-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal60.8 KB (126.2 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A tidy motion demo that builds and mounts cleanly even outside a shadcn scaffold, but it is starter code rather than a finished design-system control. Use it when Framer Motion is already justified, then fix the text contrast and turn the fixed markup into a real component API.

Use it if

  • You want a small animated call-to-action and already use Framer Motion.
  • You are comfortable adapting the fixed label, styles, and click behavior in the source.
  • Your interface uses Tailwind utilities and compatible theme variables.

Skip it if

  • You need an accessible default without first correcting the flagged text contrast.
  • You do not want to add Framer Motion for a single button interaction.
  • You need a ready-made button API with props, variants, event forwarding, or composition support.

Install

Installation record for tripled-scale-hover-button-shadcnui
Declared dependenciesframer-motion, react
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn React project, add Framer Motion, copy the client component, configure Tailwind for its utility classes, and define compatible accent and muted-foreground theme colors. Replace the fixed label and wire the button action for your use case.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.