Appearance
NavigationBackToTop
A button that appears after some scrolling and goes back to the top, without animation if the visitor asked for less motion.
ts
import { NavigationBackToTop } from '@zairakai/vue-components/Navigation'Usage
vue
<NavigationBackToTop />Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | ||
class | string | ||
threshold | number | 300 | The scroll distance, in pixels, after which the button shows. |
label | string | 'Back to top' |
Events
| Name | Description |
|---|---|
click |
Slots
| Name | Description |
|---|---|
default |
See Theming for the class hooks and the data-* state of the components.