angular-sanctuary/angular-agent-skills

angular-material

Angular Material UI component library based on Material Design 3

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/angular-sanctuary/angular-agent-skills --skill angular-material

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

The skill is based on Angular Material v21.x (v21.2.0-next.2), generated at 2026-01-31.

Angular Material is the official UI component library for Angular, implementing Material Design 3 (M3). It provides a comprehensive set of pre-built, accessible components along with the Component Dev Kit (CDK) for building custom components.

When to Apply

Use this skill when:

  • Using Angular Material components (buttons, forms, dialogs, tables, etc.)
  • Theming with Material Design 3 (M3) color palettes, typography, density
  • Working with mat-form-field, inputs, select, autocomplete, or datepicker
  • Implementing data tables with sorting, pagination, and filtering
  • Creating dialogs, bottom sheets, snackbars, or tooltips
  • Building navigation with sidenav, menus, tabs, or steppers
  • Using CDK primitives (overlay, portal, drag-drop, virtual scrolling)
  • Implementing accessible components with CDK a11y utilities
  • Creating custom form field controls that integrate with mat-form-field
  • Using component test harnesses for reliable testing
  • Scaffolding components with Angular Material schematics

Do NOT use this skill when:

  • Using a different UI library (PrimeNG, ngx-bootstrap, etc.)
  • Building completely custom UI without Material Design
  • Working with Angular Aria headless primitives (use the angular-aria skill instead)

Core References

TopicDescriptionReference
ThemingM3 theming system with color palettes, typography, density, and CSS variablescore-theming
SchematicsAngular CLI schematics for scaffolding components and generating themescore-schematics
Component HarnessesTest harnesses for reliable, maintainable component testingcore-harnesses

Components

Buttons & Indicators

TopicDescriptionReference
ButtonsText, filled, FAB, icon buttons, and button togglescomponent-buttons
BadgeSmall status descriptors attached to elementscomponent-badge
IconVector icon display with font and SVG supportcomponent-icon
ProgressProgress bar and spinner indicatorscomponent-progress

Form Controls

TopicDescriptionReference
Form FieldForm field wrapper with labels, hints, errorscomponent-form-field
InputNative input and textarea with mat-form-fieldcomponent-input
SelectDropdown select with single and multiple selectioncomponent-select
AutocompleteText input with dropdown suggestionscomponent-autocomplete
ChipsChips for selection, filtering, and tag inputcomponent-chips
Form ControlsCheckbox, radio, slide toggle, slidercomponent-form-controls
DatepickerDate and date range pickerscomponent-datepicker
TimepickerTime selection with dropdown optionscomponent-timepicker

Layout

TopicDescriptionReference
CardContent containers for text, images, actionscomponent-card
DividerLine separator for visual content separationcomponent-divider
ExpansionExpandable panels and accordioncomponent-expansion
Grid ListTwo-dimensional grid layout for tilescomponent-grid-list
ListLists for items, navigation, actions, selectioncomponent-list
TreeHierarchical data display with flat/nested treescomponent-tree

Navigation

TopicDescriptionReference
NavigationSidenav, menu, toolbar, and tabscomponent-navigation
StepperWizard-like workflows with stepscomponent-stepper

Tables

TopicDescriptionReference
TableMaterial Design data table with featurescomponent-table
SortSortable column headerscomponent-sort
PaginatorPagination controls for paged datacomponent-paginator

Popups & Modals

TopicDescriptionReference
DialogModal dialogs with data sharingcomponent-dialog
Bottom SheetModal panels from the bottomcomponent-bottom-sheet
SnackbarBrief notification messagescomponent-snackbar
TooltipText labels on hover/focuscomponent-tooltip

CDK (Component Development Kit)

Overlays & Positioning

TopicDescriptionReference
OverlayFloating panels with positioning strategiescdk-overlay
PortalDynamic content renderingcdk-portal
DialogUnstyled modal dialog foundationcdk-dialog

Accessibility

TopicDescriptionReference
AccessibilityFocus management, keyboard navigation, live announcercdk-a11y

Data & Collections

TopicDescriptionReference
TableFoundational data table with DataSource patterncdk-table
TreeFoundation for hierarchical tree displaycdk-tree
CollectionsSelectionModel for managing selection statecdk-collections
Virtual ScrollingPerformant rendering of large listscdk-scrolling

Layout & Responsiveness

TopicDescriptionReference
LayoutBreakpointObserver and MediaMatchercdk-layout
BidiBidirectionality (LTR/RTL) handlingcdk-bidi

Interaction

TopicDescriptionReference
Drag and DropReordering lists and transferring itemscdk-drag-drop
ClipboardCopy text to system clipboardcdk-clipboard
ListboxAccessible custom listbox controlscdk-listbox
MenuAccessible custom menus and menu barscdk-menu

Component Foundations

TopicDescriptionReference
AccordionFoundation for expandable panel groupscdk-accordion
StepperFoundation for wizard-like workflowscdk-stepper

Utilities

TopicDescriptionReference
Text FieldAuto-resize textarea and autofill detectioncdk-text-field
PlatformBrowser and platform detectioncdk-platform
ObserversContent mutation observationcdk-observers
CoercionInput type coercion utilitiescdk-coercion
KeycodesKeyboard key code constantscdk-keycodes

Advanced

TopicDescriptionReference
Custom Form Field ControlCreating custom mat-form-field controlsadvanced-custom-form-field
Theme CustomizationCSS variables and utility classes in custom componentsadvanced-theme-customization

按任务相关推荐