readClipboardContents
A function that reads various types of content stored in the Clipboard, including text, html, and images.
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.