pattern library v1.0.0-alpha.1

Copy code

Autoselects the text automatically on click. Can be optionaly combined with every icon-* class.

<label class="copy-code icon-download">
  <input type="text" class="copy-code__text" value="npm install package-name" readonly onclick="this.focus();this.select()" aria-label="npm install command">
</label>