@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
30 lines (29 loc) • 973 B
TypeScript
import { type TextareaFieldProps as UiTextareaFieldProps } from '@mitcsutt/kiln-ui';
import type { ControlledKeys } from '../internal/controlledKeys.js';
import { type CommonFieldProps } from '../../../hooks/useFieldBinding.js';
export interface FormTextareaFieldProps extends Omit<UiTextareaFieldProps, ControlledKeys>, CommonFieldProps<string> {
}
/**
* A multi-line text field bound to a `string` path.
*
* @remarks
* It renders kiln-ui's {@link TextareaField | TextareaField}.
*
* @example In a schema
* ```json
* {
* "kind": "textarea",
* "name": "notes",
* "label": "Notes for the crew",
* "maxLength": 300,
* "showCount": true
* }
* ```
*
* @value `string`
* @empty `''`
*
* @privateRemarks
* A multi-line text field bound to a `string` path (§7.2 `textarea`).
*/
export declare const FormTextareaField: import("../../../kit/contracts.js").FieldDef<import("../../../kit/contracts.js").ExactContract<string>, FormTextareaFieldProps>;