1.0.0 • Published 5 years ago

react-mini-element-view v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-mini-element-view

React HOC for mini view of the element when it out from the screen view

Live Demo: https://yvnino.github.io/react-mini-element-view/example/dist/

Getting Started

Follow the next steps to run the app locally: npm run start:dev - Development env npm run start:prod - Development prod npm run test - Run unitests npm run eslint - Run static analyzer

Component properties

PropertyTypeDescription
initialPositionobjectoptional; object where the mini component will appear for the first time
miniElementStyleobjectoptional; style object of the mini element view
onChangeViewModefunctionoptional; when the mini compenent appear or the original component appear
draggablebooleanoptional; declare if the mini component view can be draggable - default true

License

This project is licensed under the MIT License.