DEV Community

Cover image for bsTouchspin: Bootstrap 5 Number Spinner
jQueryScript
jQueryScript

Posted on

bsTouchspin: Bootstrap 5 Number Spinner

bsTouchspin: a Bootstrap plugin that converts plain text inputs into Bootstrap 5 number spinners with + and - buttons.

Key features:

  • Min/max value clamping with configurable step size
  • Built-in number, currency, and percent formatters with locale support
  • Optional prefix and postfix labels
  • Programmatic value, prefix, postfix, and destroy methods
  • jQuery events for init, spin start, and spin stop

Works with Bootstrap 5 CSS and Bootstrap Icons. No Bootstrap JavaScript bundle required.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)