Measured entry

ruixen-share-button

buttongradient-glowmotion on file

A client-side React share control that morphs from a single button into link, email, and X choices, then shows a temporary confirmation state. It ships as a shadcn registry TSX file, uses utility classes for styling, and depends on Motion for layout, presence, spring, and icon animations. Actual sharing is delegated to an optional callback.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-share-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-share-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-share-button 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 ruixen-share-button
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal61.5 KB (126.9 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A polished interaction shell with clean verified behavior, but not a complete sharing feature. It is a good fit when the host app owns the real actions and values the morphing choreography; otherwise, a native share API wrapper or simpler menu will be more practical.

Use it if

  • You want a compact share menu that expands in place instead of opening a popover.
  • Your product can supply the clipboard, email, and social-sharing behavior through the callback.
  • Motion is already acceptable in your client bundle and the dark neutral styling suits the surrounding interface.

Skip it if

  • You need working clipboard, mail, or social actions out of the box, because the component only reports the selected target.
  • You need native share-sheet behavior or automatic target detection on mobile devices.
  • You want a lightweight static button and cannot justify adding Motion for one interaction.
  • Your interface cannot accommodate a dark, fixed-target control without restyling its embedded utility classes.

Install

Installation record for ruixen-share-button
Declared dependenciesmotion
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add Motion, place the TSX file in a client-rendered React area, and provide the utility CSS setup or replace the classes with local styles. Wire the onShare callback to clipboard, email, and X actions, including error handling and truthful confirmation feedback.

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.