All Projects → luisvinicius167 → Notti

luisvinicius167 / Notti

Dead simple user notification.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Notti

Potato Library
Easy to use Utility library for Android
Stars: ✭ 45 (-37.5%)
Mutual labels:  library, notifications
Noty
⛔️ DEPRECATED - Dependency-free notification library that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog.
Stars: ✭ 6,725 (+9240.28%)
Mutual labels:  library, notifications
Tsmessages
💌 Easy to use and customizable messages/notifications for iOS à la Tweetbot
Stars: ✭ 4,927 (+6743.06%)
Mutual labels:  library, notifications
Notifier
Notifications library made with VanillaJS.
Stars: ✭ 67 (-6.94%)
Mutual labels:  library, notifications
Retry
A Rust library to retry some code until its return value satisfies a condition.
Stars: ✭ 70 (-2.78%)
Mutual labels:  library
Anglesharp.js
👼 Extends AngleSharp with a .NET-based JavaScript engine.
Stars: ✭ 68 (-5.56%)
Mutual labels:  library
Kju
Kju — Improved waiting time for the adidas.com splash page ❯❯❯_
Stars: ✭ 68 (-5.56%)
Mutual labels:  notifications
Reapop
📮 A simple and customizable React notifications system
Stars: ✭ 1,155 (+1504.17%)
Mutual labels:  notifications
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+1538.89%)
Mutual labels:  library
Redoflacs
Parallel BASH commandline FLAC compressor, verifier, organizer, analyzer, and retagger
Stars: ✭ 71 (-1.39%)
Mutual labels:  library
Bitcoin Elixir
Bitcoin tools and full node implementation in Elixir.
Stars: ✭ 70 (-2.78%)
Mutual labels:  library
Androidaudioconverter
Convert audio files inside your Android app easily. Supported formats: AAC, MP3, M4A, WMA, WAV and FLAC.
Stars: ✭ 1,156 (+1505.56%)
Mutual labels:  library
Cscss
CSS parsing library for C# based on Mozilla Firefox code [MPL]
Stars: ✭ 70 (-2.78%)
Mutual labels:  library
Andes
Python toolbox / library for power system transient dynamics simulation with symbolic modeling and numerical analysis 🔥
Stars: ✭ 68 (-5.56%)
Mutual labels:  library
Qy Wechat Notification Plugin
企业微信Jenkins构建通知插件
Stars: ✭ 72 (+0%)
Mutual labels:  notifications
React Native X Bar
🎩 A flexible, lightweight bar component for common UI patterns in React Native
Stars: ✭ 68 (-5.56%)
Mutual labels:  library
Typednotifications
A mechanism for sending typed notifications with payloads across your iOS app.
Stars: ✭ 70 (-2.78%)
Mutual labels:  notifications
Calendarview
Calendar View Library
Stars: ✭ 71 (-1.39%)
Mutual labels:  library
Countly Sdk Cordova
Countly Product Analytics SDK for Cordova, Icenium and Phonegap
Stars: ✭ 69 (-4.17%)
Mutual labels:  notifications
Checknewappversionavailable
It makes a request to Play Store to check if there is a new version of your published app
Stars: ✭ 69 (-4.17%)
Mutual labels:  notifications

notti

npm package

Don't make me think - Dead simple user notification.


notti Website ➞

Why should you use notti?

  • Tiny size: 2.2kb
  • No external CSS dependency
  • No jQuery dependency
  • Fully customizable

Install

Npm: npm install notti CDN: https://unpkg.com/[email protected]

The Gist:

import { notti } from 'notti';

notti('Hello User!');

notti({
  // HTML Element
  message: '<strong>Hello!</stong> User',
  isHTML: true,
  style : {
    backgroundColor: '#333',
    color:'#fff',
    bottom: '10px',
    right: '10px'
  },
  onHide: () => {
    console.log('Awesome notti.js!')
  }
});

API

/**
 * @name notti
 * type Function
 * @description Show an notification
 * @param {String || Object } The message or customizable Object
 */

 notti('Hi Folks!');
 
 // or
 const customizable = {
   message: 'Hi folks',
   style: {
     backgroundColor: '#333',
     color: '#fff',
     top: '10px',
     right: '10px',
   }
 }

 notti(customizable);

Customizable params

/**
  * @param {String} message The notification message
  * @param {Object} style Customizable style
  * @param {Boolean} autoHide Auto hide the notification box
  * @param {Boolean} hideOnClick Hide the notification when clicked
  * @param {Boolean} isHTML If the message string contains HTML Element
  * @param {Integer} delay The notification hide delay time
  * @param {Function} onHide The Function that will be called when the notification disappear
  **/

  const config = {
    // required
    message: 'Hi Folks' || '<p>Hi <span class="username">Folks</span></p>',
    // just true if your message contains HTML Element
    isHTML: false, //default
    //optional
    style:  {}, //default
    //optional
    autoHide:  true, //default
    //optional
    hideOnClick: true, //default
    //optional
    delay:  2000, //default
    //optional
    onHide: ()=>{console.log('Awesome notti.js')}
  }
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].