Skip to content


Read and write to the system clipboard using the clipboard plugin.

Install the clipboard plugin to get started.

  1. Use your project’s package manager to add the dependency:
npm run tauri add clipboard-manager
  1. Modify to initialize the plugin:
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
// Initialize the plugin
.expect("error while running tauri application");

The clipboard plugin is available in both JavaScript and Rust.

import { writeText, readText } from '@tauri-apps/plugin-clipboard-manager';
// Write content to clipboard
await writeText('Tauri is awesome!');
// Read content from clipboard
const content = await readText();
// Prints "Tauri is awesome!" to the console

© 2023 Tauri Contributors. CC-BY / MIT