@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
24 lines (23 loc) • 759 B
TypeScript
export interface FormHiddenFieldProps {
/** Not submitted as its current value: the default is submitted instead. */
excluded?: boolean;
}
/**
* A hidden input that carries a `string` value into the form's native `FormData`.
*
* @example In a schema
* ```json
* {
* "kind": "hidden",
* "name": "source"
* }
* ```
*
* @value `string`
* @empty `''`
*
* @privateRemarks
* A non-visual `<input type="hidden">` carrying a `string` path into native `FormData` (§7.2
* `hidden`) — the only markup `@mitcsutt/kiln-forms` renders itself. Nothing renders in view mode.
*/
export declare const FormHiddenField: import("../../../kit/contracts.js").FieldDef<import("../../../kit/contracts.js").ExactContract<string>, FormHiddenFieldProps>;