React 360 Product Viewer
About React 360 Product Viewer
It can be controlled either using mouse or touch!
- React component
- Uses Typescript
WARNING: This project is not yet available for download using NPM , the following test is merely a stub. Will be updated when the component is ready to be used.
React In order to use the component you need a React project. This was built and tested with 17.0.2 but other versions should work.
Make sure you have a react project – otherwise use: .
npx create-react-app my-app --template typescript
- Download through npm
npm add react-360-product-viewer
- Add the component to your page, change the properties to fit your need. For all options see storybook
TODO: Add descriptions of all parameters For more example and a playground please refer to storybook
- Add rotate icon
- Start image index
- Set autoplay to look x number of times
- Release for NPM
- Document API
- Allow for external URI:s as imagesources
- Example on how to layout images
- Add inertia
- Supply events
- Autoplay finished
- Image changed
- User key Down
- User key release
- User movement
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag “enhancement”. Don’t forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the MIT License. See
LICENSE.txt for more information.