My aim was to keep it simple and lightweight while progressively adding useful features, largely in the form of props which allow users to customise the slider, eg:
- Custom min, max and step values
- Custom slider size
- Toggle a value label
- Change the slider colours
- Pass down a custom thumb element
The component was developed in ES6 and compiled to ES5 by Babel for release as an NPM package. I’m using semantic-release, Travis CI and commitizen for meaningful commit messages, semantic versioning, continuous integration, automated package publishing and releases.