Interface

Navbar

Navbar

Represents the Navbar component.

View Source component/Navbar/Navbar.jsx, line 11

Members

number

# static bodyScrollPosition

State to manage the body scroll position.

Default Value:
  • 0

View Source component/Navbar/Navbar.jsx, line 27

Object

# static location

Retrieves the current location using the useLocation hook from react-router-dom.

View Source component/Navbar/Navbar.jsx, line 20

string

# static path

State to manage the current path.

Default Value:
  • " "

View Source component/Navbar/Navbar.jsx, line 12

boolean

# static showScroll

State to manage whether to show the scroll arrow.

Default Value:
  • false

View Source component/Navbar/Navbar.jsx, line 108

Methods

# inner checkScrollTop()

Checks the scroll position and updates showScroll state.

View Source component/Navbar/Navbar.jsx, line 119