Skip to main content

readClipboardContents

A function that reads various types of content stored in the Clipboard, including text, html, and images.


Code

🔗 View source code


Interface

typescript
const readClipboardContents: () => Promise<ClipboardItems>

Usage

typescript
import { readClipboardContents } from '@modern-kit/utils';

const result = await readClipboardContents();
// Reads various types of content from the clipboard, including text, html, and images.