dynamic-forms-ionic / TypeAlias

IonicFormProps

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

This is the same type as IonicConfig used in withIonicFields(). 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: IonicFormConfig = {
  defaultProps: {
    fill: 'outline',
    labelPlacement: 'floating',
    color: 'tertiary',
  },
  fields: [
    { type: 'ionic-input', key: 'name', label: 'Name' },
  ],
};