naive-ui/demo/documentation/components/back-top/enUS/index.demo-entry.md
2020-09-03 23:40:38 +08:00

652 B

Back Top

It helps you back to where you were. However, time never goes back.

Demos

Scroll down to see demos work.

basic
visibility-height
change-position
target-container-selector

Props

Name Type Default Description
theme 'light' | 'dark' | null null
target () => HTMLElement a function that returns the nearest scrollable ascendant element
right number | string 40
bottom number | string 40
visibility-height number 180
themed-style { [themeName: string]: Object } | null null

Events

Name Parameters Description
show ()
hide ()