JSFiddle - React, Tailwind, and code Playground

by Abhineet Vispute

HTML

<script src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div style="margin:20px;">
  <div class="custom-control custom-checkbox custom-control-inline control-left-label">
    <input type="checkbox" id="location" value="location" name="custom1" class="custom-control-input">
    <label class="custom-control-label" for="location"> custom left label 1</label>
  </div>

  <div class="custom-control custom-checkbox custom-control-inline control-left-label">
    <input type="checkbox" id="location2" value="location2" name="custom2" class="custom-control-input">
    <label class="custom-control-label" for="location2">custom left label 2</label>
  </div>
  <hr>
    <div class="custom-control custom-checkbox custom-control-inline ">
    <input type="checkbox" id="location3" value="location3" name="custom2" class="custom-control-input">
    <label class="custom-control-label" for="location3"> bootstrap checkbox</label>
  </div>
</div>

CSS

.custom-checkbox.control-left-label {
  padding-left: 0;
}

.control-left-label label.custom-control-label {
  padding-right: 1.5rem;
}

.control-left-label .custom-control-label::before,
.control-left-label .custom-control-label::after {
  right: 0;
  left: auto;
}