Measured entry
ruixen-button-copy
buttonliquid-glassmotion on file
A client-side React copy button distributed as a shadcn registry TSX file. It writes a supplied value through the Clipboard API, animates its icon and label with Motion, injects its own light and dark glass CSS, and can synthesize click feedback through the Web Audio API.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 60.5 KB (125.9 KB build, 65.4 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A polished, self-contained choice when animated copy confirmation is worth the Motion dependency. It mounts cleanly without a provider, but the silent error path is a meaningful product gap for workflows where copying must be dependable.
Use it if
- You need a compact copy action with visible success feedback for code, links, tokens, or identifiers.
- Your interface already uses Motion and the component's glass styling fits its visual language.
- You want optional labels and sound without adding a provider or shared state.
Skip it if
- You want a dependency-free copy control and do not otherwise ship Motion.
- Copy failures must be exposed to the user, since this component silently ignores clipboard errors.
- Your design system forbids component-injected global style tags or requires styling through shared tokens.
- Audio feedback is unsuitable and your team may overlook disabling its enabled-by-default sound option.
Install
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
In a non-shadcn project, copy the TSX component into the codebase, install Motion, and render it from a client-side React boundary. Ensure the Clipboard API is available in the deployment context, pass the value explicitly, and align the dark-theme selector with the app's theme convention.
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.
Author repository
github.com/ruixenui/ruixen.comAlternatives
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.
- neu-buttonneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-buttonclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- tripled-animated-radio-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glow-link-buttonliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 58.9KB
- Bare
- pass
- Prov
- NO
- tripled-mood-gradient-button-shadcnuigradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 59.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glass-ai-cardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 59.5KB
- Bare
- pass
- Prov
- NO