Skip to content

Latest commit

 

History

History
executable file
·
44 lines (27 loc) · 883 Bytes

README.md

File metadata and controls

executable file
·
44 lines (27 loc) · 883 Bytes

Back To Top

General

Look at the button on the bottom right.

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';
Property Type Default Description Required
speed number 500 Speed of scrolling up. Amount of time measured in milliseconds. -
easing linear | easeIn | easeOut | easeInOut - Types of easing animation -
btnIcon ReactNode - Button Icon -

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