dynamic-forms-material / TypeAlias

MatFormProps

Material-specific props that can be set at form level and cascade to all fields.

This is the same type as MaterialConfig used in withMaterialFields(). Using a single type ensures consistency between library-level and form-level configuration.

The cascade hierarchy is: Library-level → Form-level → Field-level

Presentation

Example usage

const config: MatFormConfig = {
  defaultProps: {
    appearance: 'outline',
    subscriptSizing: 'dynamic',
    color: 'accent',
  },
  fields: [
    { type: 'mat-input', key: 'name', label: 'Name' },
  ],
};