Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Code Block Copy

Code block with a file name and a copy button that confirms with a tick and a screen reader message. Falls back to a hidden text field when the clipboard API is missing. For documentation and developer pages.

offerte-aanvragen.sh
curl -X POST https://api.voorbeeld.nl/v1/offertes \
  -H "Authorization: Bearer $API_SLEUTEL" \
  -d postcode=2511AB -d dienst=dakkapel

How to use it

  1. Paste the HTML where the components should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Code Block Copy · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="ccp">
  <figure class="ccp__blok">
    <figcaption class="ccp__kop">
      <span class="ccp__bestand">offerte-aanvragen.sh</span>
      <button class="ccp__knop" type="button">
        <svg class="ccp__ico ccp__ico--kopie" viewBox="0 0 20 20" aria-hidden="true"><rect x="6.5" y="6.5" width="10" height="10" rx="1.5"/><path d="M13.5 6.5V4.8c0-.7-.6-1.3-1.3-1.3H4.8c-.7 0-1.3.6-1.3 1.3v7.4c0 .7.6 1.3 1.3 1.3h1.7"/></svg>
        <svg class="ccp__ico ccp__ico--vink" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10.5l4 4 8-9"/></svg>
        <span class="ccp__label">Kopieer</span>
      </button>
    </figcaption>
    <pre class="ccp__pre"><code class="ccp__code"><span class="ccp__c">curl</span> -X POST https://api.voorbeeld.nl/v1/offertes \
  <span class="ccp__v">-H</span> <span class="ccp__s">"Authorization: Bearer $API_SLEUTEL"</span> \
  <span class="ccp__v">-d</span> <span class="ccp__s">postcode=2511AB</span> <span class="ccp__v">-d</span> <span class="ccp__s">dienst=dakkapel</span></code></pre>
    <span class="ccp__melding" role="status" aria-live="polite"></span>
  </figure>
</div>
</div>

More components

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →