Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-to-print

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-to-print - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

2

package.json
{
"name": "react-to-print",
"version": "1.0.2",
"version": "1.0.4",
"description": "Print React components in the browser",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -28,3 +28,2 @@ <div align="center">

import ReactToPrint from "react-to-print";
import PropTypes from "prop-types";

@@ -78,1 +77,14 @@ class ComponentToPrint extends React.Component {

```
## API
#### &lt;ReactToPrint />
The component accepts the following props:
|Name|Type|Description
|:--:|:-----|:-----|
|**`trigger`**|function|A callback function that returns a React Component or HTML element
|**`content`**|function|A callback function that returns a component reference value. The content of this reference value is then used for print
|**`copyStyles`**|boolean|Copies all &lt;style> and &lt;link type="stylesheet" /> from <head> inside the parent window into the print window. (default: true)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc