@theredhead — Frontend Library - v0.2.1
    Preparing search index...
    • Register one or more field types for use in form schemas.

      Parameters

      Returns EnvironmentProviders

      // app.config.ts
      import { provideFormFields } from '@theredhead/lucid-forms';
      import { UIInput, UISelect, UICheckbox } from '@theredhead/lucid-kit';

      export const appConfig = {
      providers: [
      provideFormFields({
      text: { component: UIInput, modelProperty: 'value' },
      select: { component: UISelect, modelProperty: 'value' },
      checkbox: { component: UICheckbox, modelProperty: 'checked' },
      }),
      ],
      };