vue-to-print

A Vue 3 component to print the content of an element or a component.
378,273 78
Install
npm install vue-to-print
Latest Version:1.5.1
Vue:3
License:MIT
Last Updated:Sep 4, 2025
Links: GitHub  ·  npm
Maintainer: abc1310054026

vue-to-print

You've created a Vue component and would love to give end users the ability to print out the contents of that component. This package aims to solve that by popping up a print window with CSS styles copied over as well.

npm npm NPM semantic-release: angular Netlify Status

What is this?

This is the Vue 3.x version of ReactToPrint.

Thanks to the contributors of ReactToPrint whose work made this package possible.

VueToPrint aims to be as consistent as possible with ReactToPrint so that you can use the same API. However, there are some differences due to the differences between Vue 3.x and React.

Documentation

Example

Click any of the buttons below to start a new development environment to demo or contribute to the codebase without having to install anything on your machine:

Open in CodeSandbox

Untested

Open in StackBlitz

Open in Repl.it

Open in GitHub Codespaces

Open in Codeanywhere

Open in Gitpod

Open in VS Code

Open in Glitch

Thanks

JetBrains Logo (Main) logo

Thank JetBrains for providing an open-source license, which allows me to use such an excellent IDE.

License

FOSSA Status

Related Packages

vue-full-screen-file-drop

Vue component for full screen file drop

16,061 19
bxs-ui-vue

BSX Components

3,870
@~crazy/watcher

对象观察者

1,049
vue-plugin-hiprint

hiprint for Vue2.x / Vue3.x 支持拖拽(分页(不分页)、表头表脚、样式设置、复制粘贴...

168,284 1,739
vue-cookies-ts

A simple Vue.js plugin for handling browser cookies

41,932 3

Version History

Version Released License
1.5.1 MIT
1.5.0 MIT
1.4.0 MIT
1.3.1 MIT
1.3.0 MIT
Pre-releases (4)
Version Released License
1.2.0-alpha.3 MIT
1.2.0-alpha.2 MIT
1.2.0-alpha.1 MIT
1.1.0-alpha.1 MIT