codemen-clipboard
v1.0.5
Published
Copy your content and store all previous copied content
Downloads
2
Readme
codemen-clipboard
Copy your content and store all previous copied content using local storage
Installation
Install codemen-clipboard with npm
npm install codemen-clipboard@latest
or
yarn add codemen-clipboard@latest
Usage/Examples
import { useCodemenClipboard } from "codemen-clipboard"
function App() {
const { copy, copiedItem, copiedItems, clearAll, clearAllCopiedItems, clearCopiedItem } = useCodemenClipboard();
return <>
<button className="me-4" onClick={() => copy("@thecodemen")}>COPY</button>
<button className="me-4" onClick={() => clearAll()}>clearAll</button>
<button className="me-4" onClick={() => clearAllCopiedItems()}>clearAllCopiedItems</button>
<button className="me-4" onClick={() => clearCopiedItem()}>clearCopiedItem</button>
</>
}
Usage/Component
import { useCodemenClipboard, CopyButton } from "codemen-clipboard"
function App() {
const { copy } = useCodemenClipboard();
return (
<div>
<CopyButton className="tailwind classes" onClick={() => copy("@thecodemen")} />
</div>
)
}
🚀 About Me
I'm Amit Sharma, a committed Full Stack Developer with a focus on JavaScript/TypeScript 💻 and the corresponding runtimes. I have a strong expertise in startups and have led the creation of applications from their birth utilising state-of-the-art online technology. By constantly experimenting with new technologies, I hope to improve the experiences of developers and end users. As a devoted fan of productivity, I'm dedicated to streamlining procedures and workflows to increase my efficacy as a developer.
🔗 Links
Contributing
This is open source project. Code