百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

md2

> 前端框架
开源

基于 Angular2 的 Material Design 组件、指令和服务包括 Accordion、Autocomplete、Collapse、Colorpicker、Datepicker、Dialog(Modal)、Menu、Multisel

375 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于 Angular2 的 Material Design 组件、指令和服务包括 Accordion、Autocomplete、Collapse、Colorpicker、Datepicker、Dialog(Modal)、Menu、Multisel

MD2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Chips(Tags), Collapse, Colorpicker, Data Table, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.

Installation

The latest release of MD2 can be installed from npm

npm install --save md2

Playing with the latest changes from master is also possible

npm install --save https://github.com/Promact/md2.git

Getting started

Setup MD2 in your project

typescript
// system.config.js
// ================
{
  map: {
    'md2': 'node_modules/md2/bundles/md2.umd.js'
  }
}

// app.module.ts
// =============

import { Md2Module }  from 'md2';
@NgModule({
  imports: [
    ...,
    Md2Module,
  ],
  ...
})
export class AppModule { }

Demo

demo and demo sources.

Components:

  • md2-accordion
  • md2-autocomplete
  • md2-chips
  • md2-collapse
  • md2-colorpicker
  • md2-data-table
  • md2-datepicker
  • md2-dialog
  • md2-menu
  • md2-select
  • md2-tabs
  • md2-tags
  • md2-toast
  • md2-tooltip

The goal of MD2

Our goal is to build a set of high-quality UI components built with Angular and TypeScript, following the Material Design spec. These components will serve as an example of how to write Angular code following best practices.

What do we mean by "high-quality"?

  • Internationalized and accessible so that all users can use them.
  • Straightforward APIs that don't confuse developers.
  • Behave as expected across a wide variety of use-cases without bugs.
  • Behavior is well-tested with both unit and integration tests.
  • Customizable within the bounds of the Material Design specification.
  • Performance cost is minimized.
  • Code is clean and well-documented to serve as an example for Angular devs.

Browser and screen reader support

MD2 supports the most recent two versions of all major browsers: Chrome (including Android), Firefox, Safari (including iOS), and IE11 / Edge

We also aim for great user experience with the following screen readers:

  • NVDA and JAWS with IE / FF / Chrome (on Windows).
  • VoiceOver with Safari on iOS and Safari / Chrome on OSX.
  • TalkBack with Chrome on Android.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptaccordionangular2autocompletechip

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架