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

vue-mdc-adapter

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-mdc-adapter

Vue wrapper arround Material Components for the Web

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
197
decreased by-37.26%
Maintainers
1
Weekly downloads
 
Created
Source

Version Vue License Downloads

Build Codacy Dependencies Chat

Material Components for Vue

vue-mdc-adapter is an integration of Material Components for Vue.js which follows best practices recommended by Google: Using Foundation and adapters

The project aims at trying to find the right balance between ease of use vs customization, while sticking to the Vue Spirit (approachable, versatile, performant,)

Project Status

The project is under active development.
Focus is on known issues, validation and keeping up with MDC updates.

Component Status

  • button
  • card
  • checkbox
  • dialog
  • drawer
  • fab
  • grid-list
  • icon
  • icon-toggle
  • layout-app
  • layout-grid
  • linear-progress
  • list
  • menu
  • radio
  • select
  • slider
  • snackbar
  • switch
  • tabs
  • textfield
  • toolbar
  • typography

Getting Started

quick start

  • vue-cli
npm install -g vue-cli
vue init stasson/vue-mdc-adapter-simple my-project

npm install

npm install --save vue-mdc-adapter

vue-mdc-adapter and material components uses es6 for code and sass for styles make sure your webpack/rollup config resolves node_modules for transpiling and sass imports

  • ES6 Imports
import Vue from 'vue'
import VueMdcAdapter from 'vue-mdc-adapter'
Vue.use(VueMdcAdapter)
  • SCSS Theming
$mdc-theme-primary: #212121;
$mdc-theme-accent: #41B883;
$mdc-theme-background: #fff;

@import "vue-mdc-adapter/components/styles";

or cherry pick components:

  • ES6 Imports
import Vue from 'vue'
import VueMdcButton from 'vue-mdc-adapter/components/button'
Vue.use(VueMdcButton)
  • SCSS
@import "vue-mdc-adapter/components/button/mdc-button";

CDN install

<head>
  <!-- import reset material icons, fonts and vue-mdc-adapter stylesheets -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" type="text/css">
  <link rel="stylesheet" href="https://unpkg.com/vue-mdc-adapter/dist/vue-mdc-adapter.min.css">

  <!-- import vue and then vue-mdc-adapter -->
  <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
  <script src="https://unpkg.com/vue-mdc-adapter/dist/vue-mdc-adapter.min.js"></script>
</head>
<body>
  <!-- vue mdc markup -->
<body>

Keywords

FAQs

Package last updated on 14 Nov 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