FormFieldProps
interface FormFieldProps extends module:components/base/Component.ComponentProps {
children?: unknown;
className?: string;
defaultValue?: unknown;
disabled?: boolean;
error?: string;
helpText?: string;
id?: string;
label?: string;
name: string;
onBlur?: () => void;
onChange?: (value: unknown) => void;
onFocus?: () => void;
placeholder?: string;
readOnly?: boolean;
required?: boolean;
rules?: ValidationRule[];
style?: Record<string, string | number>;
value?: unknown;
visible?: boolean;
}Source: Form.ts:45
Form field props
Hierarchy
ComponentPropsFormFieldProps
Properties
children: unknown
Inherited from children
Child components or content
className: string
Inherited from className
CSS class names
defaultValue: unknown
Default value
disabled: boolean
Inherited from disabled
Whether component is disabled
error: string
Error message to display
helpText: string
Help text displayed below field
id: string
Inherited from id
Unique component identifier
label: string
Field label
name: string
Field name
onBlur: () => void
Blur handler
onChange: (value: unknown) => void
Value change handler
onFocus: () => void
Focus handler
placeholder: string
Placeholder text
readOnly: boolean
Whether field is read-only
required: boolean
Whether field is required
rules: ValidationRule[]
Validation rules
style: Record<string, string | number>
Inherited from style
Inline styles
value: unknown
Field value
visible: boolean
Inherited from visible
Whether component is visible