react-to-print
Advanced tools
Comparing version 1.0.2 to 1.0.4
{ | ||
"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 | ||
#### <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 <style> and <link type="stylesheet" /> from <head> inside the parent window into the print window. (default: true) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11370
88
337805
11