writeText
writeText(
text,opts?):Promise<void>
Defined in: index.ts:27
Writes plain text to the clipboard.
string
string
Promise<void>
A promise indicating the success or failure of the operation.
import { writeText, readText } from '@tauri-apps/plugin-clipboard-manager';await writeText('Tauri is awesome!');assert(await readText(), 'Tauri is awesome!');2.0.0
© 2025 Tauri Contributors. CC-BY / MIT