# Scroll to top

scroll-to-top component adds scroll to top action floating button when page is scrolled enough

# Usage

To use scroll to top component import it and render it in template tags. It is really simple component which don't have any props, event and slots. It is used in App.vue.

  <!-- This is minimal example with nothing but a scroll to top component -->
  <scroll-to-top v-if="enableScrollToTop" />

import ScrollToTop from '@core/components/scroll-to-top/ScrollToTop.vue'
import { $themeConfig } from '@themeConfig'

export default {
  components: {
  setup() {
    const { enableScrollToTop } = $themeConfig.layout

    return {
🥳 ×

Help us provide the integration and customization you need.
Save more hours 🕖 by letting us know how you want our template to be.

Yes, I want to help