Skip to content

Backtop NEW

A Button to back to top.

Basic usage

Scroll down to see the bottom-right button.

Customizations

Customize the button style, this display area is 40px * 40px.

Backtop Props

NameTypeDefaultDescription
targetstringundefinedThe target to trigger scroll.
deltanumber200The button will not show until the scroll height reaches this value
rightnumber40Right distance.
bottomnumber40Bottom distance.

Backtop Methods

NameParametersDescription
click(evt: MouseEvent) => voidTriggers when click.

Backtop Slots

NameParametersDescription
default()Customize default content.

MIT Licensed