Skip to content

Function: useBackToTop()

useBackToTop(options): object | object

You can use href="#" to back to top

Parameters

options = ...

options.offset: number

show backToTop button, when height > offset

Returns

object | object

Description

你可以使用它来编写自己的 backToTop

Defined in

packages/valaxy/client/composables/widgets/backToTop.ts:8