1.0.5 • Published 5 years ago

vue-top-button v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

vue-top-button

Latest Version

Scroll to page top button, Vue.js component.

Demo

Demo

Install

Browser

<script src="vue.js"></script>
<script src="vue-go-top.min.js"></script>

npm

npm install --save vue-top-button

Usage

Browser

<div id="app">
  <go-top></go-top>
</div>

<script src="vue.js"></script>
<script src="vue-go-top.min.js"></script>
<script>
Vue.use(GoTop);
new Vue({
  el: '#app'
});
</script>

SFC

<template>
  <go-top></go-top>
</template>

<script>
import GoTop from 'vue-top-button';

export default {
  components: {
    GoTop
  }
}
</script>

Props

nametypedefaultsdescription
:sizeNumber70width/height pixel size
:rightString, Number50margin from right
:bottomString, Number100margin from bottom
:bottom-gapString, Number0gap of bottom margin
:z-indexNumber1000z-index size
fg-colorString#fffffftext color
bg-colorString#ffc966background color
:radiusString, Number50%border-radius size
weightStringnormalline weight of arrow
ripple-bgStringrgba(255, 255, 255, .5)ripple animation color
:boundaryNumber200top position where the element is displayed
:max-widthNumber640media query max-width(px)
srcStringnullimage url
altString | alternative text for image
:has-outlineBooleantrueshow outline when focus
box-shadowString1px 1px 2px rgba(0, 0, 0, .3)box-shadow property

License

MIT

Author

Ahmad Ainul Rizki

1.0.5

5 years ago

1.0.4

5 years ago