JSFiddle - React, Tailwind, and code Playground

by jipexu

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<div class="container-fluid">
  <form>
    <fieldset>
      <legend class="text-success">Custom input without attribute for ...</legend>
      <div class="form-group">
        <label class="custom-control custom-checkbox">
          <input type="checkbox" class="custom-control-input" name="Sactif" value="ON" checked="checked" />
          <span class="custom-control-indicator"></span>
          <span class="custom-control-description">Activer le Bloc</span>
        </label>
      </div>
      <div class="form-group">
        <label class="custom-control custom-checkbox">
          <input type="checkbox" class="custom-control-input" name="css" value="1" checked="checked" />
          <span class="custom-control-indicator"></span>
          <span class="custom-control-description">CSS Specifique</span>
        </label>
      </div>
    </fieldset>

    <fieldset>
      <legend class="text-danger">Custom input with attribute for ...</legend>
      <p class="text-danger">and now with for attribut ...doesnt work </p>

      <div class="form-group">
        <label class="custom-control custom-checkbox" for="nono">
          <input type="checkbox" class="custom-control-input" name="nono" value="ON" checked="checked" />
          <span class="custom-control-indicator"></span>
          <span class="custom-control-description">Activer le Bloc</span>
        </label>
      </div>
      <div class="form-group">
        <label class="custom-control custom-checkbox" for="notwork">
          <input type="checkbox" class="custom-control-input" name="notwork" value="1" checked="checked" />
          <span...