import type { FormConfig } from '@ng-forge/dynamic-forms';
const config = {
fields: [
{ key: 'name', type: 'input', label: 'Your Name', required: true },
{ key: 'email', type: 'input', label: 'Email', email: true },
{ key: 'message', type: 'textarea', label: 'Message' },
{ key: 'submit', type: 'submit', label: 'Send Message' },
],
} as const satisfies FormConfig;
import type { FormConfig }
from '@ng-forge/dynamic-forms';
const config = {
fields: [
{
key: 'name',
type: 'input',
label: 'Your Name',
required: true,
},
{
key: 'email',
type: 'input',
label: 'Email',
email: true,
},
{
key: 'message',
type: 'textarea',
label: 'Message',
},
{
key: 'submit',
type: 'submit',
label: 'Send Message',
},
],
} as const satisfies FormConfig;