title: Backtop
A button to back to top.
Scroll down to see the bottom-right button.
:::demo
backtop/basic
:::
Display area is 40px * 40px.
:::demo
backtop/custom
:::
Name | Description | Type | Default |
---|---|---|---|
target |
the target to trigger scroll. | string |
— |
visibility-height |
the button will not show until the scroll height reaches this value. | number |
200 |
right |
right distance. | number |
40 |
bottom |
bottom distance. | number |
40 |
Name | Description | Parameters |
---|---|---|
click |
triggers when click. | (evt: MouseEvent) => void |
Name | Description |
---|---|
default |
customize default content. |