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

Segmented Control

A choice between three options where a white panel slides to the selected one. Built on plain radio buttons, so arrow keys and screen readers work out of the box.

Hoe vaak wilt u een factuur?

Twaalf facturen per jaar, steeds op de eerste van de maand.

How to use it

  1. Paste the HTML where the forms & inputs 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.
<!-- Segmented Control · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<fieldset class="nsc">
  <legend class="nsc__vraag">Hoe vaak wilt u een factuur?</legend>
  <div class="nsc__balk">
    <span class="nsc__vlak" aria-hidden="true"></span>
    <label class="nsc__optie"><input class="nsc__radio" type="radio" name="nsc-periode" value="maand" checked><span class="nsc__tekst">Per maand</span></label>
    <label class="nsc__optie"><input class="nsc__radio" type="radio" name="nsc-periode" value="kwartaal"><span class="nsc__tekst">Per kwartaal</span></label>
    <label class="nsc__optie"><input class="nsc__radio" type="radio" name="nsc-periode" value="jaar"><span class="nsc__tekst">Per jaar</span></label>
  </div>
  <p class="nsc__uitleg" aria-live="polite">Twaalf facturen per jaar, steeds op de eerste van de maand.</p>
</fieldset>
</div>

More forms & inputs

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 →