@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
7 lines (6 loc) • 364 B
TypeScript
import type { FormKit, ExtrasOf, KitInput } from './types.js';
/**
* Creates a kit (§3.3): one field registry drives `field.TextField` (TanStack canonical),
* `form.TextField name=…` (typed shorthand) and, later, schema `{ kind: 'text' }`.
*/
export declare function createFormKit<const K extends KitInput>(registries: K): FormKit<K['fields'], ExtrasOf<K>>;