@almoamendev/ngx-md3

中文文档
0.9.1发布于 2026/11/03MITTypeScriptES Module构建来源已验证近 30 天下载 1930

MD3-style Angular components & style library

原始使用文档
文档目录5 节
  1. Why ngx-md3
  2. Install
  3. Quick start
  4. Links
  5. License

ngx-md3

A standalone, signals-first Angular component library that follows the Material Design 3 spec closely — not a reskin of Material 2, and not a wrapper around Angular Material.

Docs & live component gallery: https://almoamendev.github.io/ngx-md3/**

Why ngx-md3

  • Material Design 3 — color, shape, elevation, and motion tokens taken straight from the MD3 spec.
  • Signals-first — standalone components built on Angular Signals, with model() for real two-way bindings where they matter.
  • Accessible by default — correct ARIA roles, states, and keyboard behavior are built into every component, not bolted on afterward.
  • Plays well with forms — every input-like component works with Angular Reactive Forms out of the box.
  • Fully themeable — swap the entire palette by overriding CSS custom properties, no rebuild required.
  • Tree-shakeable — every component is a standalone import; pull in a button without dragging along the rest of the library.

Install

npm install @almoamendev/ngx-md3

Quick start

import { Component } from '@angular/core';
import { Button } from '@almoamendev/ngx-md3';

@Component({
    selector: 'app-example',
    imports: [Button],
    template: `
        <button md3-button button-type="filled">
            Get started
        </button>
    `,
})
export class ExampleComponent {}

Browse the full component catalogue, API references, and live playgrounds at https://almoamendev.github.io/ngx-md3/**.

License

MIT © Murtadha (Hussain) Almoamen — see LICENSE.

版本与发布记录

@almoamendev/ngx-md3 共发布 49 个版本,首次发布于 2026/08/02;过去 12 个月发布了 49 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.9.1latest2026/11/035 天前
0.9.02026/11/026 天前
0.8.142026/11/026 天前
0.8.132026/10/318 天前
0.8.122026/10/2811 天前
0.8.112026/10/2514 天前

关于 @almoamendev/ngx-md3 的常见问题

@almoamendev/ngx-md3 是什么?

MD3-style Angular components & style library

如何安装 @almoamendev/ngx-md3?

在项目目录运行 npm install @almoamendev/ngx-md3,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@angular/cdk(^22.0.0)、@angular/core(^22.0.0)、@angular/forms(^22.0.0)、@angular/common(^22.0.0)、@angular/router(^22.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@almoamendev/ngx-md3 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@almoamendev/ngx-md3 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@almoamendev/ngx-md3 可以商用吗?

@almoamendev/ngx-md3 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@almoamendev/ngx-md3 的下载量有多少?

根据 npm 官方下载统计,@almoamendev/ngx-md3 在 2026/10/06 – 2026/11/04 这 30 天内被下载 1,930 次,日均约 64 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@almoamendev/ngx-md3 还在维护吗?

最新版本 0.9.1 发布于 2026/11/03(5 天前);至今共发布 49 个版本,其中过去 12 个月发布了 49 个;首次发布于 2026/08/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。