Back top

A button to back to top.

Basic usage

Scroll down to see the bottom-right button.


Backtop Attributes

NameDescriptionTypeDefault
targetthe target to trigger scrollstring
visibility-heightthe button will not show until the scroll height reaches this valuenumber240
rightright distancenumber24
bottombottom distancenumber24

Backtop Events

NameDescriptionParameters
clicktriggers when click.(evt: MouseEvent) => void

Backtop Slots

NameDescription
defaultcustomize default content.
Last Updated: 10/1/2022, 6:04:27 AM
Contributors: Tam Mai