
Description
vue-fixed-header is a small component for Vue.js that makes a header stick to the top of the page when the user scrolls past a threshold. The project describes itself as simple and cross-browser friendly, and it is written in TypeScript. You wrap your header content in the component, and it always adds the vue-fixed-header class to the root element. When the scroll position passes the threshold, it adds a second class, vue-fixed-header--isFixed. You can rename both classes with the headerClass and fixedClass props. The threshold prop sets the scroll point at which the header becomes fixed. The README includes install and usage instructions, a single file component example and a props section with types and defaults. The package is released under the MIT licence.…
Highlights
- Header sticks when scroll passes a threshold
- Written in TypeScript
- Custom class names through props
- Single file component usage
- Cross-browser friendly, per the README
Ratings & Reviews
No ratings yet
Be the first to rate vue-fixed-header.
People also visit
vue-fixed-header FAQ
What is vue-fixed-header?
A Vue component that keeps a header fixed to the top of the page once the user scrolls past a set point.
How do I control when the header becomes fixed?
Use the threshold prop, which sets the scroll value that switches the header into its fixed state.
Can I change the CSS class names?
Yes. Use the headerClass prop for the root element and the fixedClass prop for the fixed state. The defaults are vue-fixed-header and vue-fixed-header--isFixed.
Is it written in TypeScript?
Yes, according to the repository description.
What license applies?
MIT.
What are the best vue-fixed-header alternatives?
Popular alternatives to vue-fixed-header include vue3-simple-typeahead, vue-final-modal and vue-navigation-bar. See all vue-fixed-header alternatives



















