Seed Bible extension API (v1.19.0) / seed-bible/components / Unexported types / FieldTextProps
Type Alias: FieldTextProps
type FieldTextProps = {
error?: ComponentChild;
hideLabel?: boolean;
hint?: ComponentChild;
label: ComponentChild;
optional?: boolean;
};What TextField and SelectField say around their control.
Properties
error?
error?: ComponentChild;What's wrong with the value. Shows in the danger color, marks the field invalid and is announced.
hideLabel?
hideLabel?: boolean;Keeps the label for screen readers only, for a box whose purpose is plain from where it sits (a search-style box, a one-line "add" row). Give it a placeholder so sighted people still see what to type.
hint?
hint?: ComponentChild;A line under the field saying more (a format, a limit). Read out with it.
label
label: ComponentChild;What the field is for ("Profile name"). Required: it names the control for screen readers too.
optional?
optional?: boolean;Adds "(Optional)" after the label.