2020-02-04 12:08:11 +08:00
|
|
|
# Back Top
|
2019-10-16 13:45:13 +08:00
|
|
|
<!--single-column-->
|
2020-01-29 19:48:38 +08:00
|
|
|
It helps you back to where you were. However, time never goes back.
|
|
|
|
## Demos
|
|
|
|
Scroll down to see demos work.
|
|
|
|
|
2019-10-16 13:45:13 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
visibilityHeight
|
2019-10-25 17:53:41 +08:00
|
|
|
changePosition
|
|
|
|
targetContainerSelector
|
|
|
|
```
|
2020-01-29 19:48:38 +08:00
|
|
|
|
|
|
|
## Props
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
2020-05-30 17:20:27 +08:00
|
|
|
|theme|`'light' \| 'dark' \| null`|`null`||
|
2020-01-29 20:29:25 +08:00
|
|
|
|target|`() => HTMLElement`|a function that returns the nearest scrollable ascendant element||
|
2020-02-28 19:46:06 +08:00
|
|
|
|right|`number \| string`|`40`||
|
|
|
|
|bottom|`number \| string`|`40`||
|
2020-01-29 19:48:38 +08:00
|
|
|
|visibility-height|`number`|`180`||
|
2020-05-31 14:33:44 +08:00
|
|
|
|themed-style|`{ [themeName: string]: Object } \| null`|`null`||
|
2020-01-29 19:48:38 +08:00
|
|
|
|
|
|
|
## Events
|
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
|
|
|
|show|`()`||
|
|
|
|
|hide|`()`||
|