TouchSpin React Example
October 24, 2025 · View on GitHub
Standalone Vite + React 19 demo showcasing the @touchspin/react vanilla renderer.
Getting Started
Install dependencies and launch the demo:
cd ../touchspin-react-example
npm install
npm run dev
Open the printed URL (default http://localhost:5173/) to try the number spinners. The example wires both controlled and uncontrolled components and imports the vanilla renderer CSS.
Need to test unpublished bits? Swap the
@touchspin/reactdependency inpackage.jsonback to a localfile:reference and rebuild the siblingtouchspin-reactpackage before installing.
Scripts
npm run dev– start Vite in dev modenpm run build– type-check and create a production bundlenpm run preview– serve the production build locally