Read and write to the system clipboard using the clipboard plugin.
Install the clipboard plugin to get started.
Use your project’s package manager to add the dependency:
-
Run cargo add tauri-plugin-clipboard-manager
to add the plugin to the project’s dependencies in Cargo.toml
.
-
Modify lib.rs
to initialize the plugin:
-
If you’d like to manage the clipboard in JavaScript then install the npm package as well:
The clipboard plugin is available in both JavaScript and Rust.
© 2024 Tauri Contributors. CC-BY / MIT