# clipboard.js > A modern approach to copy & cut to the clipboard. No Flash. No dependencies. Just 1kb. ## Install You can get it using bower: ``` bower install clipboard --save ``` Or [download as ZIP](https://github.com/zenorocha/clipboard.js/archive/master.zip). ## Usage First, you need to instantiate it using a selector. This selector corresponds to the trigger element, usually a ` ``` Another way of doing it, is to copy the content from an another element. You can do that by adding a `data-target` attribute in your trigger element. The value you include on this attribute needs to match another's element `id` attribute. ```html

Lorem ipsum

``` Additionally, you can define a `data-action` attribute to specify if you want to either `copy` or `cut` content. If you omit this attribute, `copy` will be used. ```html ``` As you may expect, the `cut` action only works on `` or `