discue
Components
  • Code Contributions
  • Code of Conduct
  • Security Policy
  • Changelog
GitHub
Components
  • Code Contributions
  • Code of Conduct
  • Security Policy
  • Changelog
GitHub
  • Components
    • BackToTop
    • Banner
    • DropDownMenu
    • DropDownMenuBannerItem
    • DropDownMenuItem
    • FormElementErrorMessage
    • FormElementsContainer
    • FormImmutableText
    • FormInput
    • FormInputRadio
    • FormInputSelect
    • Headline
    • Headlines
    • NavButton
    • NavLink
    • Text
  • Contributions

BackToTop since v0.2.0 themeable

A 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>
Improve this page
Last Updated:
Contributors: Stefan Pfaffel
Next
Banner