
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
vue-breakpoints
Advanced tools
Vue.js utility component to show and hide components based on breakpoints
Vue.js utility component to show and hide components based on breakpoints
📺 Demo
yarn add vue-breakpoints
<template>
<nav>
<hide-at breakpoint="medium">
<mobile-nav />
</hide-at>
<show-at breakpoint="mediumAndAbove">
<desktop-nav>
</show-at>
</nav>
</template>
<script>
import {showAt, hideAt} from 'vue-breakpoints'
export default {
components: { hideAt, showAt }
}
</script>
You can pass following values as a breakpoint:
Default breakpoints are
small: 744,
medium: 1128,
large: Infinity
but they can be overwritten if you pass an object to the breakpoints
prop.
<show-at :breakpoints="{small: 620, medium: 1280, large: 1600}" breakpoint="medium">
prop | default | type | description |
---|---|---|---|
breakpoints | undefined | Object | Important that if you pass the object you only use small , medium and large as the childs. |
breakpoint | '' | String | Breakpoint where it should show or hide small , mediumAndBelow , medium , mediumAndAbove , largeAndBelow , large |
Details changes for each release are documented in the CHANGELOG.md.
Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.
Please make sure to read the Contributing Guide and Code of Conduct before making a pull request.
FAQs
Vue.js utility component to show and hide components based on breakpoints
The npm package vue-breakpoints receives a total of 424 weekly downloads. As such, vue-breakpoints popularity was classified as not popular.
We found that vue-breakpoints demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.