Type
MatButtonAddon
@ng-forge/dynamic-forms-material
Interactive button addon for Material fields.
Renders <button mat-icon-button> (icon-only) or <button mat-button>
(labeled). Click dispatch (preset / actionRef / action precedence) lives
on NgForgeAddonAction; this addon shape focuses on configuration.
Type-level guarantees:
- Content axis (XOR): IconOnly (icon + required ariaLabel) |
Labeled (label, icon optional) | Decorative (neither). The IDE
rejects icon-only configs that omit ariaLabel.
- Click axis (XOR): exactly one of preset / actionRef / action,
or none.
Signature
type MatButtonAddon = MatButtonBase & MatButtonContent & MatButtonClick;packages/dynamic-forms-material/src/lib/types/addons.ts:120