LOGOVALAXY
  • Config
  • API
Documentation navigation
  • client

    • Modules

    • Interfaces

      • AddonCatalogEntry

      • BaseCategory

      • CategoryList

      • CollectionConfig

      • GetHeadersOptions

      • Header

      • LocalizedAddonText

      • LocalizedValaxyAddon

      • LocalSearchResult

      • PostCollectionInfo

      • ScrollToOptions

      • ValaxySSGContext

    • Type Aliases

    • Variables

    • Functions

  • node

  • types

Interface: ScrollToOptions ​

Source: 1.0.0-rc.14 · a572916b42ec

Defined in: packages/valaxy/client/utils/router.ts:10

En ​

Options for scrolling to a target element.

Zh ​

滚动到目标元素的选项。

Properties ​

smooth ​

ts
smooth: boolean;

Defined in: packages/valaxy/client/utils/router.ts:18

En ​

Whether to scroll smoothly.

Zh ​

平滑滚动


targetPadding ​

ts
targetPadding: number;

Defined in: packages/valaxy/client/utils/router.ts:22

滚动目标的 padding

Previous pagePostCollectionInfo
Next pageValaxySSGContext
On this page

Released under the MIT License. (a572916b)

Copyright © 2022-present YunYouJun & Valaxy Contributors