nkbt/react-copy-to-clipboard
Copy-to-clipboard React component observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 71
- Release rhythm 42
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4078
- days_rel: 179
- days_push: 179
- n_releases_24m: 1
Adoption not part of the score
2370 stars · 131 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small React component that wraps the copy-to-clipboard library to copy text to the clipboard on click. It renders no tags itself and wraps a single child element that captures the click, with an optional onCopy callback.
Use cases
- copy text to clipboard in a react app
- add a copy button to a code snippet
- copy input field value on button click
- show feedback after user copies text
- clipboard copy with fallback for older browsers
When to choose
- you need a simple, battle-tested React wrapper for clipboard copying
- you want click-to-copy behavior on any element with minimal setup
- you need broad browser support including legacy fallbacks
When to avoid
- you are not using React
- you need the modern async Clipboard API with permissions handling
- you need to copy rich content like images or HTML, not just text
Facets
library · maturity stable
ui-components developer-tools frontend web-development developer-tools browser react-component clipboard copy-to-clipboard npm nodejs javascript
2 sources
- readme: https://github.com/nkbt/react-copy-to-clipboard · fetched 2026-08-28 · 7fd8938622c7
- registry_npm: https://registry.npmjs.org/react-copy-to-clipboard · fetched 2026-08-29 · 956621851a5d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nkbt/react-copy-to-clipboard | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="nkbt/react-copy-to-clipboard")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem