Interface

ScrollArrow

ScrollArrow

Represents the ScrollArrow component.

View Source component/GotoTop/GotoTop.jsx, line 7

Members

boolean

# static showScroll

State to manage whether to show the scroll arrow.

Default Value:
  • false

View Source component/GotoTop/GotoTop.jsx, line 8

Methods

# static checkScrollTop()

Checks the scroll position and updates showScroll state.

View Source component/GotoTop/GotoTop.jsx, line 16

# static scrollTop()

Scrolls to the top of the page smoothly when clicked.

View Source component/GotoTop/GotoTop.jsx, line 29