MatthewHerbst/react-to-print
Print React components in the browser observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 87
- Release rhythm 60
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 49.5
- age_days: 3195
- days_rel: 191
- days_push: 83
- n_releases_24m: 11
Adoption not part of the score
2475 stars · 235 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React library that lets you print the content of React components directly from the browser via a hook-based API. It handles building the print window, copying styles and fonts, and provides lifecycle callbacks around the print dialog.
Use cases
- print a React component from the browser
- add a print button to a React page
- generate printable invoices or reports from React UI
- print dynamic content with custom fonts
- control document title when saving print output as PDF
When to choose
- you need to print specific React component content without leaving the browser
- you want a simple hook API with style/font handling and print lifecycle callbacks
- you need CSP nonce support or shadow DOM content in printed output
When to avoid
- you need server-side PDF generation rather than browser printing
- your project is not React-based
- you need pixel-perfect print layouts beyond what CSS print styles offer
Facets
library · maturity active
ui-components developer-tools frontend web-development developer-tools browser cross-platform react printing hooks typescript browser-printing nodejs
2 sources
- readme: https://github.com/MatthewHerbst/react-to-print · fetched 2026-08-28 · 545474fe275f
- registry_npm: https://registry.npmjs.org/react-to-print · fetched 2026-08-29 · b6a0266f0da6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MatthewHerbst/react-to-print | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="MatthewHerbst/react-to-print")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem