This project demonstrates a range slider component that supports two modes: fixed values and normal range. It uses Next.js, Turbopack, and Vitest for development and testing.
You can try out the range slider for both modes:
Before running the application, make sure to install the project dependencies:
npm installTo start the development server using Turbopack:
npm run devThe development server will be available at: http://localhost:8080
To build the project for production:
npm run buildAfter building the project, you can run the production server:
npm startThe production server will be available at: http://localhost:8080
To run the tests using Vitest:
npm run testTo check the test coverage:
npm run test:coverageTo use the interactive test UI:
npm run test:uiThe coverage command shows detailed statistics for your test files.
- Mode-based range slider:
- Fixed Mode: A slider with predefined values.
- Normal Mode: A slider with adjustable min, max, and step values.
- Modern stack: Built with Next.js and uses Turbopack for blazing-fast development.
- Comprehensive testing: Leveraging Vitest for unit testing and coverage reports.
- Node.js 18+
- npm 8+
Feel free to explore and extend the project as needed!