{"library":"react-copy-to-clipboard-lite","type":"library","category":null,"description":"react-copy-to-clipboard-lite is a lightweight (approx. 1.1 kB minzipped), dependency-free utility for copying text to the clipboard in React applications, currently at version 1.0.3. It offers a tiered fallback mechanism, utilizing the modern Clipboard API first and gracefully falling back to `document.execCommand` for older browsers like Safari, without relying on deprecated `prompt()` calls for permissions. The library provides structured `CopyResult` objects for robust error handling and never throws exceptions. It is designed to be SSR-safe, permission-aware (checking `navigator.permissions.query()` without prompting), and fully supports React 18+ environments, including new React 19 features like `formAction` and `useActionState`. This package differentiates itself through its minimal footprint, lack of runtime dependencies, and explicit handling of permissions and SSR contexts.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","react","react copy to clipboard","clipboard","react 19","useActionState","strictmode safe","copy button","nextjs clipboard","typescript"],"install":[{"cmd":"npm install react-copy-to-clipboard-lite","imports":["import { copyToClipboard } from 'react-copy-to-clipboard-lite';","import { useCopyToClipboard } from 'react-copy-to-clipboard-lite/react';","import { CopyToClipboard } from 'react-copy-to-clipboard-lite/react';","import { copyToClipboardAction } from 'react-copy-to-clipboard-lite/react';"]},{"cmd":"yarn add react-copy-to-clipboard-lite","imports":[]},{"cmd":"pnpm add react-copy-to-clipboard-lite","imports":[]}],"homepage":null,"github":"https://github.com/rajudandigam/react-copy-to-clipboard-lite","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-copy-to-clipboard-lite","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-copy-to-clipboard-lite/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}