Backtop

A button to back to top

Basic usage

Scroll down to see the bottom-right button.

Customizations

Display area is 40px * 40px.

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
targetthe target to trigger scrollstring
visibility-heightthe button will not show until the scroll height reaches this valuenumber200
rightright distancenumber40
bottombottom distancenumber40

Events

Event NameDescriptionParameters
clicktriggers when clickclick event

Slots

NameDescription
customize default content