BackTopTsx

Back top button.

Base Usage

Swipe to view the button in the bottom right corner of the container.

basic.vue

Component Configuration

BackTopTsx Props

propdescriptiontypedefault
targetObjects that trigger scrollingstringwindow
visibility-heightOnly when the rolling height reaches this parameter value will it appearnumber / string200
rightControl its display position, distance from the right margin of the pagenumber / string40
bottomControl its display position, distance from the bottom of the pagenumber / string40

BackTopTsx Events

eventdescriptionparam
clickEvent triggered by clicking a button(event: MouseEvent) => void

BackTopTsx Slots

slotdescription
defaultCustomize default content

Type Definition

Component exports the following type definitions

import type { BackTopTsxProps } from '@bfehub/vlib-ui'

Style Variables

The component provides the following CSS variables that can be used to customize styles

namedefault
--vlib-back-top-tsx-right40px
--vlib-back-top-tsx-bottom40px
--vlib-back-top-tsx-button-size40px