Back To Top

General

Look at the button on the bottom right.


Show Code
import React from "react";
import BackToTop from 'funda-ui/BackToTop';
 
// component styles
import 'funda-ui/BackToTop/index.css';
 
export default () => {
 
    return (
        <>
          
            <BackToTop speed={700} easing="easeOut" btnIcon={<>Top</>} />
 
          
        </>
    );
}

API

Back To Top

import BackToTop from 'funda-ui/BackToTop';
PropertyTypeDefaultDescriptionRequired
speednumber500Speed of scrolling up. Amount of time measured in milliseconds.-
easinglinear | easeIn | easeOut | easeInOut-Types of easing animation-
btnIconReactNode-Button Icon-

Scroll the page down to preview. The button is in the bottom right corner of the screen.