Bootstrap 5 spinner/loading/pending indicator for <input>
, <textarea>
and <select>
Example: https://codesandbox.io/s/github/tkrotoff/bootstrap-input-spinner/tree/codesandbox.io
- Small: ~200 lines of SCSS
- Works with modern browsers
- Uses Bootstrap variables
Check the changelog for breaking changes and fixes between releases.
npm install @tkrotoff/bootstrap-input-spinner
Import bootstrap-input-spinner.scss:
@import '~@tkrotoff/bootstrap-input-spinner/src/bootstrap-input-spinner';
Modify your Bootstrap 5 code as follow:
<div class="mb-3">
<label for="email">Email address</label>
<div class="is-loading">
<input type="email" id="email" class="form-control">
<div class="spinner-border spinner-border-sm"></div>
</div>
</div>