Available Components
Mat Dynamic Form provides a comprehensive set of components for building dynamic forms in Angular. Each component is designed to work seamlessly with Angular’s reactive forms and Material Design.Input Components
These components capture text and numeric data from users.Input
Standard text input for single-line text entry with character limits and validation.
Textarea
Multi-line text input for longer content like comments or descriptions.
Input File
File upload component with drag-and-drop support and file type validation.
Selection Components
These components allow users to choose from predefined options.Dropdown
Single or multi-select dropdown with support for async data loading.
Radio Group
Mutually exclusive radio button groups for clear choice selection.
Checkbox
Boolean checkbox for toggleable options and agreements.
Date and Time Components
These components handle date and time input with built-in pickers.Date Picker
Date selection with Material Design calendar picker.
Date Time Picker
Combined date and time selection with customizable formats.
Time Picker
Time-only selection with clock picker interface.
Action Components
These components trigger actions and form submissions.Button
Action buttons with built-in form validation support.
Custom Component
Embed your own Angular components within the dynamic form.
Common Features
All components share these common capabilities:Validation Support
Every component supports both synchronous and asynchronous validation using Angular’s built-in validators or custom validation functions.Event Handling
Attach custom actions to respond to user interactions:Material Design Icons
Add Material icons to enhance visual clarity:Responsive Layout
Control component width with thesingleLine property:
Helper Text
Provide contextual guidance with hints:The apply() Method
All components support the fluentapply() method for clean, readable configuration:
Component Properties Reference
Common Properties
These properties are available on all components:Unique identifier for the component. Used to access values and controls.
Placeholder text displayed when the field is empty.
Material icon name to display alongside the field.
Whether the field is disabled and non-interactive.
Whether the field takes up a full row in the form grid.
Synchronous validators to apply to the field.
Asynchronous validators for server-side validation.
Custom error message displayed when validation fails.
Helper text displayed below the field.
Whether the field receives focus when the form loads.
