All Projects → mrastiak → vue-notification-bell

mrastiak / vue-notification-bell

Licence: MIT License
Vue.js notification bell component.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to vue-notification-bell

Vue Social Sharing
A renderless Vue.js component for sharing links to social networks, compatible with SSR
Stars: ✭ 1,071 (+1573.44%)
Mutual labels:  vuejs2, vue-components, vue-component, vuejs-components
Vue Codemirror
⌨️ @codemirror component for @vuejs
Stars: ✭ 2,115 (+3204.69%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Xcui
🍴 A Vue.js 2.x desktop components colletion
Stars: ✭ 88 (+37.5%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vue Particles
Vue.js component for particles backgrounds ✨
Stars: ✭ 1,220 (+1806.25%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vuelayers
Web map Vue components with the power of OpenLayers
Stars: ✭ 532 (+731.25%)
Mutual labels:  vuejs2, vue-components, vue2, vuejs-components
Quasar
Quasar Framework - Build high-performance VueJS user interfaces in record time
Stars: ✭ 20,090 (+31290.63%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vue Awesome Swiper
🏆 Swiper component for @vuejs
Stars: ✭ 12,072 (+18762.5%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vue Snotify
Vuejs 2 Notification Center
Stars: ✭ 755 (+1079.69%)
Mutual labels:  notifications, vuejs2, vue-components, vue2
Vue Touch Ripple
👆 Touch ripple component for @vuejs
Stars: ✭ 443 (+592.19%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vue Video Player
🎞 @videojs component for @vuejs
Stars: ✭ 4,026 (+6190.63%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vue Quill Editor
🍡@quilljs editor component for @vuejs
Stars: ✭ 6,874 (+10640.63%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vue Form Json Schema
Create forms using JSON schema. Bring your components!
Stars: ✭ 253 (+295.31%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Vuex Flash
VueJs Flash Message Component within Vuex
Stars: ✭ 54 (-15.62%)
Mutual labels:  vuejs2, vue-components, vue2
Vue Cnode
基于vue2 + vue-router + vuet + ES6 + less + flex.css重写vue版cnode社区,使用webpack2打包
Stars: ✭ 1,134 (+1671.88%)
Mutual labels:  vuejs2, vue-components, vue2
Nextcloud Vue
🍱 Vue.js components for Nextcloud app development ✌
Stars: ✭ 89 (+39.06%)
Mutual labels:  vuejs2, vue-components, vuejs-components
Vue Multi Select
This component gives you a multi/single select with the power of Vuejs components.
Stars: ✭ 92 (+43.75%)
Mutual labels:  vuejs2, vue-components, vuejs-components
Vue Image Loader
Vue progressive image loader plugin like Medium
Stars: ✭ 47 (-26.56%)
Mutual labels:  vuejs2, vue-components, vue2
Vue Toastr
Vuejs Toast : Plugin and Component Capability.
Stars: ✭ 93 (+45.31%)
Mutual labels:  vuejs2, vue2, vue-component
Vue Objccn
🔥 Use Vue.js to develop a cross-platform full stack application / 用 Vue.js 开发的跨三端应用
Stars: ✭ 1,993 (+3014.06%)
Mutual labels:  vuejs2, vue-components, vue2
Vuemmerce
👉 Responsive ecommerce template 🛒 built with Vue.js and Nuxt.js
Stars: ✭ 223 (+248.44%)
Mutual labels:  vuejs2, vue-components, vue2

vue-notification-bell

vue-notification-bell

npm version

A Vue UI component for showing notifications. Demo Page

How To Install

npm install vue-notification-bell --save

How to use

Inside your vue files:

<template>
  <div id="your-component">
    <notification-bell />
    <!-- Using Component -->
  </div>
</template>
<script>
// Importing Component
import NotificationBell from 'vue-notification-bell'

export default {
  name: 'YourComponentName',
  // ...
  components: {
    NotificationBell // Registering Component
  }
  // ...
}
</script>

List of component props

⚠️ Warning: You have to v-bind custom icon path with require function:

v-bind:icon="require(@/assets/path/to/icon.svg)" ✔️

:icon="require(@/assets/path/to/icon.svg)" ✔️

icon="@/assets/path/to/icon.svg"

icon="require(@/assets/path/to/icon.svg)"

propName description Type default value
size size of component in px number 30
count number of notifications. (zero or below not shown) number 0
upperLimit if count is bigger than this number notification shown as +upperLimit number 99
counterLocation position of counter box in component. can be one of: upperRight, lowerRight, upperLeft, lowerLeft, top, left, bottom, right and center. If you set top or left prop, this prop will be disabled string upperRight
top If you want to set a custom location for counterBox, you can set top distance by this prop. You have to pass value with dimension (e.g. 10px or 20%). If you set this prop the counterLocation prop will be disabled null or string null (Location is calculated by counterLocation)
left If you want to set a custom location for counterBox, you can set left distance by this prop. You have to pass value with dimension (e.g. 10px or 20%). If you set this prop the counterLocation prop will be disabled null or string null (Location is calculated by counterLocation)
fontSize Custom font size for counter. You have to pass value with dimension. e.g. 20px or 1.5em null or string null (Font size is calculated by size)
counterPadding Custom padding for counter. You have to pass value with dimension. e.g. 20px or 1.5em null or string null (Padding is calculated by size)
icon custom notification icon. you have to pass your SVG icon location by require function null or string null (showing the default bell icon)
iconColor color of the bell icon. This property only works with default icon. if you are using custom icon, you have to handle color of the icon in your SVG file string black
disabledIcon If you want to show a different Icon when you have zero notification. you can use this prop. pass SVG icon location by require function. this prop only works if you are using custom icon too null or string null (showing the default bell icon)
counterStyle shape of counter box. can be one of: roundRectangle, rectangle, round string roundRectangle
counterBackgroundColor background color of counter box string red
counterTextColor counter text color string white
animated if true, counter increase/decrease by animation boolean false
ding if true, a ding sound is played on new notifications boolean false
prefixPlus if true, upper limit plus sign is shown as a prefix, otherwise it is shown as a postfix boolean false

Contributing

Visit CONTRIBUTING Page

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build-bundle

Lints and fixes files

npm run lint

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].