0.2.2 • Published 3 years ago

vue-scroll-fixed-navbar v0.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Vue Scroll Fixed Navbar

A Simple vue scroll fixed navbar package which will help you to fix the top header or navbar while scrolling the screen.

Demo

view vue-scroll-fixed-navbar

Buy Me a Coffee

Support me on Patreon

Installation

With build systems

npm install --save vue-scroll-fixed-navbar
yarn add vue-scroll-fixed-navbar

To make the plugin available globally

In your main.js:

import VueScrollFixedNavbar from "vue-scroll-fixed-navbar";

Vue.use(VueScrollFixedNavbar);

To include only in specific components

import {VueScrollFixedNavbar} from "vue-scroll-fixed-navbar";

export default {
    name: 'YourComponent',
    components: {
        VueScrollFixedNavbar
    }
}

Usage

<template>
    <VueScrollFixedNavbar>
        your content
    </VueScrollFixedNavbar>
</template>

API

Props

NameTypeDefault ValueDescriptionRequired
isFixedBooleantrueDefines whether to fixed the header or not.false

Example

In order to stop fixing the navbar or header pass props

<template>
    <VueScrollFixedNavbar :isFixed="false">
        your content
    </VueScrollFixedNavbar>
</template>

Open Source License

You may use it under the terms of the MIT Licenses