Bootstrap class: .custom-file

<div class="custom-file">
  <input type="file" class="custom-file-input" id="customFile">
  <label class="custom-file-label" for="customFile">Choose file</label>
</div>

Preview

Sass source

/* _custom-forms.scss:240 */
.custom-file {
  position: relative;
  display: inline-block;
  width: 100%;
  height: $custom-file-height;
  margin-bottom: 0;
}

Uses variables

Code copied to the clipboard.

Copying failed

/* _custom-forms.scss:240 */
$custom-file-height

More in Bootstrap Custom Forms