Ga direct naar inhoud
Ga direct naar inhoud
Ga direct naar inhoud

Fieldset Selectievak - checkbox

Introductie

Een fieldset met selectievakken maakt het mogelijk om meerdere opties tegelijk te selecteren. Dit is handig wanneer de gebruiker meerdere antwoorden of voorkeuren kan aangeven binnen één groep gerelateerde keuzes.

Snelstart

    
    @use "@minvws/manon/components/checkbox";
@use "@minvws/manon/components/form-fieldset-checkbox";
  

Voorbeelden

Voorbeeld: Basis

Examples
    
    <form action="" method="post">
  <fieldset>
    <legend>Examples</legend>
    <div class="checkbox">
      <input type="checkbox" id="checkbox-example-base" name="standaard-checkbox" />
      <label for="checkbox-example-base">Lorem ipsum dolor sit amet</label>
    </div>
  </fieldset>
</form>
  

Voorbeeld: Verplicht

Examples
Dit veld is verplicht
    
    <form action="" method="post">
  <fieldset>
    <legend>Examples</legend>
    <div class="required">
      <span class="nota-bene">Dit veld is verplicht</span>
      <div class="checkbox">
        <input type="checkbox" id="checkbox-example-required-1" name="voorwaarden" required />
        <label for="checkbox-example-required-1">verplicht selectievak</label>
      </div>
    </div>
  </fieldset>
</form>
  

Voorbeeld: Uitgeschakeld

Examples
    
    <form action="" method="post">
  <fieldset>
    <legend>Examples</legend>
    <div class="checkbox">
      <input type="checkbox" id="checkbox-example-disabled" name="disabled-checkbox" disabled />
      <label for="checkbox-example-disabled">Lorem ipsum dolor sit amet</label>
    </div>
  </fieldset>
</form>
  

Voorbeeld: Lijst

Examples
    
    <form action="" method="post">
  <fieldset>
    <legend>Examples</legend>
    <div class="checkbox">
      <input type="checkbox" id="checkbox-example-list-1" name="standaard-checkbox" />
      <label for="checkbox-example-list-1">Lorem ipsum dolor sit amet</label>
    </div>

    <div class="checkbox">
      <input type="checkbox" id="checkbox-example-list-2" name="standaard-checkbox" />
      <label for="checkbox-example-list-2">Lorem ipsum dolor sit amet</label>
    </div>

    <div class="checkbox">
      <input type="checkbox" id="checkbox-example-list-3" name="standaard-checkbox" />
      <label for="checkbox-example-list-3">Lorem ipsum dolor sit amet</label>
    </div>

    <div class="checkbox">
      <input type="checkbox" id="checkbox-example-list-4" name="standaard-checkbox" />
      <label for="checkbox-example-list-4">Lorem ipsum dolor sit amet</label>
    </div>
  </fieldset>
</form>
  

Voorbeeld: Lijst met “label”

Examples
List label
    
    <form action="" method="post">
  <fieldset>
    <legend>Examples</legend>
    <fieldset>
      <legend>List label</legend>
      <div class="checkbox">
        <input type="checkbox" id="checkbox-example-list-label-1" name="standaard-checkbox" />
        <label for="checkbox-example-list-label-1">Lorem ipsum dolor sit amet</label>
      </div>

      <div class="checkbox">
        <input type="checkbox" id="checkbox-example-list-label-2" name="standaard-checkbox" />
        <label for="checkbox-example-list-label-2">Lorem ipsum dolor sit amet</label>
      </div>

      <div class="checkbox">
        <input type="checkbox" id="checkbox-example-list-label-3" name="standaard-checkbox" />
        <label for="checkbox-example-list-label-3">Lorem ipsum dolor sit amet</label>
      </div>

      <div class="checkbox">
        <input type="checkbox" id="checkbox-example-list-label-4" name="standaard-checkbox" />
        <label for="checkbox-example-list-label-4">Lorem ipsum dolor sit amet</label>
      </div>
    </fieldset>
  </fieldset>
</form>