pagesource / fusion-components

A collection of React Components built with Emotion.js
https://sape-fusion.herokuapp.com/
MIT License
13 stars 22 forks source link

Creating Back to Top Component #92

Closed shouvikbhuiyan1990 closed 6 years ago

shouvikbhuiyan1990 commented 6 years ago

Added backToTop component

Based on user condition fadeOut (bool) will happen.

Following properties can be passed to BacktoTop component from the parent component

text( A string which will be beside icon, by default it is "Back to top" ) align( left / right - defines the position of back to top for left or right alinged ) icon( a custom class can be provided for adding an icon thru this prop ) fadeOut( true / false - it decides when the component should fadeout or fadein depending on boolean value ) position ( fixed / static / relative / absolute - depends on the user where they want to place the component ) fleft - ( left offset of the component if position is fixed ) fright- ( right offset of the component if position is fixed ) fbottom- ( bottom offset of the component if position is fixed )