Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

balm-ui

Package Overview
Dependencies
Maintainers
1
Versions
555
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balm-ui

Material Components + Vue

  • 0.5.0-beta.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
370
increased by13.85%
Maintainers
1
Weekly downloads
 
Created
Source

BalmUI

Material Components + Vue

Quick Start

0. Requirement

  • BalmJS
  • Vue.js@2.1.0+

1. Install

yarn add balm-ui
// or
npm install --save balm-ui

2. Setup

2.1 CSS Config (/path/to/_vendor.scss)

@import 'node_modules/balm-ui/src/styles/main.scss';

2.2 JS Config (./gulpfile.js)

balm.config = {
  ...
  scripts: {
    loaders: [{
      test: /\.vue$/,
      loader: 'vue' // You need install `vue-loader`
    }, {
      test: /balm-ui.src.*?js$/,
      loader: 'babel' // BalmJS include `babel-loader` by default
    }],
    alias: {
      'vue$': balm.config.production ? 'vue/dist/vue.min.js' : 'vue/dist/vue.esm.js',
      'balm-ui': 'balm-ui/src/index.js'
    }
  },
  ...
};

3. Usage

// `/path/to/your_main.js`

import Vue from 'vue';
import BalmUI from 'balm-ui';

Vue.use(BalmUI);

Enjoy 👻

Helpers

import {helpers} from 'balm-ui';
  • getType
  • isBoolean
  • isNull
  • isUndefined
  • isNumber
  • isString
  • isSymbol
  • isObject
  • isArray
  • isFunction
  • detectIE

Mixins

import {mixins} from 'balm-ui';

export default {
  mixins: [mixins.formValidator],
  ...
};
  • formValidator

Components

import {UiButton, UiIcon} from 'balm-ui';

export default {
  components: {
    UiButton,
    UiIcon
  },
  ...
};
  • Layout
    • Drawer
    • Toolbar (Header and footers)
    • Grid (Grid and gutter support)
    • Tabs (Tabs with support for icon and text labels)
  • Common
    • Material Icon
    • Button (Raised and flat buttons)
    • Fab (The primary action in an application)
    • Icon Toggle (Toggling icon states)
    • Menu (Pop over menus)
    • Linear Progress (Fills from 0% to 100%, represented by bars)
  • Input Controls
    • Form Field
    • Checkbox (Multi-selection controls)
    • Radio (Single selection controls)
    • Select (Popover selection menus)
    • Slider (Range Controls)
    • Switch (On off switches)
    • Textfield (Single and multiline text fields)
  • Data
    • Card (Various card layout styles)
    • Grid List (2D grid layouts)
    • List (Item layouts in lists)
  • Dialog
    • Dialog (Secondary text)
    • Snackbar (Transient messages)

Plugins

import Vue from 'vue';
import {plugins} from 'balm-ui';

Vue.use(plugins.alert);

export default {
  created() {
    this.$alert('message');
  }
};
  • event
    • onChange
    • openDialog/showDialog
    • closeDialog/hideDialog
    • setGrid
  • mixin
    • elevation (Shadow for different elevations)
    • theme (Using primary and accent colors)
    • typography (Type hierarchy)
  • alert
  • confirm
  • toast

balm-ui@0.1.x

Migrated to balm-ui-lite@0.1.x

thx BalmJS & Vue.js

FAQs

Package last updated on 06 Dec 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc