react-print-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

React Print Components

Print specific react components in the browser.

Installation

Run yarn add react-print-components or npm install react-print-components

How to use

import PrintComponents from "react-print-components";

<PrintComponents
  trigger={<button>Print</button>}
>
  <h1>Content to print!</h1>
</PrintComponents>

API

Name Type Description
trigger function A function that returns a React Component or HTML element
className string Optional class to pass to the print container

/react-print-components/

    Package Sidebar

    Install

    npm i react-print-components

    Weekly Downloads

    148

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    60.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • arthur_souza