Open History to see the last commit
1import { html } from 'lit'
2import { stringField } from './string-field'
3import type { LitFormType } from '@tanstack/lit-form'
4import type { sharedFormOptions } from './shared-form'
5β
6export function formSection(form: LitFormType<typeof sharedFormOptions>) {
7 return html`
8 ${form.field({ name: 'address.street' }, (field) =>
9 stringField(field, 'Street'),
10 )}
11 ${form.field({ name: 'address.country' }, (field) =>
12 stringField(field, 'Country'),
13 )}
14 `
15}