since v0.2.0 themeable
BackToTopA button that will be only be shown on the bottom of the page after the user scrolled down for a certain amount (offset) of pixels. On click the element will scroll all the way up to the bottom of the page.
Preview
Properties
Name
Type
Default
Value
offset
Number
300
Example
<template>
<BackToTop />
</template>
<script setup>
import { BackToTop } from '@discue/ui-components'
</script>