Skip to main content

FormField

A wrapper around form fields which provides a label, tooltip and error message.

Example

Ts
import { FormField } from '@vendure/admin-ui/react';export function MyReactComponent() {    return (       <FormField label="My field" tooltip="This is a tooltip" invalid errorMessage="This field is invalid">           <input type="text" />       </FormField>    );}
Signature
function FormField(props: PropsWithChildren<{        for?: string;        label?: string;        tooltip?: string;        invalid?: boolean;        errorMessage?: string;    }>): void

Parameters

props

parameterPropsWithChildren<{ for?: string; label?: string; tooltip?: string; invalid?: boolean; errorMessage?: string; }>
Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page