Skip to main content

Function: StringField()

StringField<confAtom, InputProps>(props): false | Element

Defined in: lib/forms/StringField.tsx:37

A form field component that renders a string input with validation and error handling. Supports different display modes (input, sheet, report) and handles various value types.

Type Parameters

confAtom

confAtom extends Atom<FieldConfig<any>, confAtom>

InputProps

InputProps extends TextInputProps & RefAttributes<TextInput, InputProps>

Parameters

props

StringFieldProps<confAtom, InputProps>

The component props

Returns

false | Element

A string input field with label, validation, and optional unit