Skip to main content

Type Alias: SearchFieldProps

SearchFieldProps = Omit<RACSearchFieldProps, "style" | "className" | "children"> & object & FieldAuthoring<React.ReactNode, { placeholder?: string; }>

Defined in: composites/SearchField/SearchField.tsx:98

Props for the SearchField root.

Both authoring forms, like every other field (ADR-022 addendum): pass label/description/errorMessage for the one-line form, or compose SearchFieldLabel + SearchFieldControl as children. Mixing them is a compile error rather than a silent precedence rule.

The one-line form is new in forms item D. Until then this composite had only the slot form — props rendered nothing but the root — which is why the field envelope reached only its label when C2 measured the family.

Type Declaration

clearLabel

clearLabel: string

Accessible label for the clear button (caller-localized — no default, per the i18n rule / ADR-001). e.g. "Clear search".