codemen-clipboard
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

portfolio linkedin github

Contributing

This is open source project. Code

Package Sidebar

Install

npm i codemen-clipboard

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

22.2 kB

Total Files

14

Last publish

Collaborators

  • codmen