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

Deelknop die uitklapt New

A "Share" button unfolds four options with a stagger: copy link (with an aria-live message), WhatsApp, LinkedIn and mail. If the browser has navigator.share (mostly phones), a "More" option opens the device share sheet too. Esc or clicking outside closes; aria-expanded on the button. CSS transitions with a stagger, works everywhere.

Blog · ma 13 okt 2026 · 6 min

Zo kies je een warmtepomp voor een jaren-30 woning

How to use it

  1. Paste the HTML where the buttons 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.
<!-- Deelknop die uitklapt · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="dku">
  <article class="dku__art"><span class="dku__k">Blog · ma 13 okt 2026 · 6 min</span><h4 class="dku__h">Zo kies je een warmtepomp voor een jaren-30 woning</h4>
    <div class="dku__share">
      <button class="dku__btn" type="button" aria-expanded="false" aria-controls="dku-opts"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><circle cx="5" cy="10" r="2.2" fill="none" stroke="currentColor" stroke-width="1.6"/><circle cx="15" cy="4.5" r="2.2" fill="none" stroke="currentColor" stroke-width="1.6"/><circle cx="15" cy="15.5" r="2.2" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="m7 9 6-3.4M7 11l6 3.4" stroke="currentColor" stroke-width="1.6"/></svg><span>Delen</span></button>
      <ul class="dku__opts" id="dku-opts" aria-label="Deelopties">
        <li style="--i:0"><button class="dku__o" type="button" data-a="copy" aria-label="Link kopiëren"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M8.5 11.5a3 3 0 0 0 4.2 0l3-3a3 3 0 0 0-4.2-4.2l-1 1M11.5 8.5a3 3 0 0 0-4.2 0l-3 3a3 3 0 0 0 4.2 4.2l1-1" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg><span class="dku__tip">Kopieer link</span></button></li>
        <li style="--i:1"><a class="dku__o" data-a="wa" href="#" target="_blank" rel="noopener" aria-label="Delen via WhatsApp"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M10 3.2a6.8 6.8 0 0 0-5.9 10.2L3.2 16.8l3.5-.9A6.8 6.8 0 1 0 10 3.2Z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/><path d="M7.6 7.4c.2 2.3 2.1 4.6 4.9 5.2l.9-1.2-1.4-.8-.7.6c-.9-.4-1.7-1.2-2.1-2.1l.6-.7-.8-1.4Z" fill="currentColor"/></svg><span class="dku__tip">WhatsApp</span></a></li>
        <li style="--i:2"><a class="dku__o" data-a="li" href="#" target="_blank" rel="noopener" aria-label="Delen via LinkedIn"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><rect x="3" y="3" width="14" height="14" rx="2.5" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M6.8 9v4.6M6.8 6.6v.1M9.6 13.6V9m0 2c0-1.2.8-2 1.8-2s1.6.7 1.6 2v2.6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg><span class="dku__tip">LinkedIn</span></a></li>
        <li style="--i:3"><a class="dku__o" data-a="mail" href="#" aria-label="Delen via e-mail"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><rect x="2.8" y="4.6" width="14.4" height="10.8" rx="1.6" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="m3.4 5.4 6.6 5.3 6.6-5.3" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg><span class="dku__tip">Mail</span></a></li>
        <li style="--i:4" class="dku__more" hidden><button class="dku__o" type="button" data-a="native" aria-label="Meer deelopties van je toestel"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><circle cx="5" cy="10" r="1.4" fill="currentColor"/><circle cx="10" cy="10" r="1.4" fill="currentColor"/><circle cx="15" cy="10" r="1.4" fill="currentColor"/></svg><span class="dku__tip">Meer</span></button></li>
      </ul>
    </div>
  </article>
  <p class="dku__toast" role="status" aria-live="polite"></p>
</div>
</div>

More buttons

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 →