• Stars
    star
    194
  • Rank 200,219 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿฌ ๐Ÿ™ˆ Vue.js utility component to show and hide components based on breakpoints

vue-breakpoints

Build Status codecov npm vue2 license

ko-fi

Vue.js utility component to show and hide components based on breakpoints

๐Ÿ“บ Demo

๐Ÿ”ง Install

npm i vue-breakpoints

yarn add vue-breakpoints

๐Ÿ‘ˆ Usage

<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>

Breakpoints

You can pass following values as a breakpoint:

  • small
  • mediumAndBelow
  • medium
  • mediumAndAbove
  • largeAndBelow
  • large

Default Breakpoints

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">

Props

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

๐Ÿ“œ Changelog

Details changes for each release are documented in the CHANGELOG.md.

โ— Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

๐Ÿ’ช Contribution

Please make sure to read the Contributing Guide and Code of Conduct before making a pull request.

ยฉ๏ธ License

MIT

Support

Buy Me A Coffee

More Repositories

1

vue-chartjs

๐Ÿ“Š Vue.js wrapper for Chart.js
TypeScript
5,542
star
2

vue-parallax

๐ŸŒŒ Vue.js component for parallax image scroll effects
JavaScript
637
star
3

vue-password-strength-meter

๐Ÿ” Password strength meter based on zxcvbn in vue.js
JavaScript
560
star
4

vue-cookie-law

๐Ÿช ๐Ÿ‘ฎ Hackable EU Cookie Law Plugin for Vue.js
JavaScript
376
star
5

npm-stats

๐Ÿ“ˆ npm package statistics dashboard build with vue
Vue
113
star
6

shopware-api-client

๐Ÿ› Javascript API Client for Shopware
JavaScript
32
star
7

vue-observable

IntersectionObserver, MutationObserver and PerformanceObserver in Vue.js
JavaScript
24
star
8

wipfred

๐ŸšงManage your wip.chat todos with alfred
JavaScript
21
star
9

sketch-flip-size

๐Ÿ” FlipSize is a small Sketch plugin to flip the size of a shape, layer or artboard
JavaScript
17
star
10

vscode-icon

๐ŸŒ€ Round OSX icon for VSCode ๐Ÿš€
16
star
11

vue-chartjs-demo

๐Ÿ“Š ๐Ÿ“ˆ Github Pages with demo charts for vue-chartjs
JavaScript
16
star
12

alfred-git-snippets

Alfred Powerpack snippets for git commit messages that are awesome
11
star
13

colourhunt

๐ŸŽจCommunity driven colour palettes
Vue
10
star
14

wiviz

Wifi client probe analyzer & visualizer
JavaScript
10
star
15

vue-chartjs-vuex

Sample project for vue-chartjs with vuex
JavaScript
9
star
16

bs3stat

๐Ÿ“Š Small dashboard service for backup ๐Ÿ’พ
Vue
7
star
17

alibaba-discount-alert

๐Ÿšจ Alert service for aliexpress discounts
JavaScript
5
star
18

mina-hipchat

HipChat room notifications for mina deploy
Ruby
3
star
19

presentation-vuex-testing

๐Ÿ’ ๐Ÿ’ฌ Slides of my vuex testing talk
3
star
20

flipper-de

FlipperZero Database for german signals
3
star
21

hacker-zines

Zines, Newsletters and Stuff that may be older than you!
2
star
22

deepbook

A social network prototype build with laravel
PHP
1
star
23

vuex-notes-app

๐Ÿ““ Vue.js note app with vuex for testing purposes
JavaScript
1
star
24

vue-chartjs-quasar

JavaScript
1
star