Skip to content

@serenity-is/corelib / PropertyFieldCaption

Function: PropertyFieldCaption()

PropertyFieldCaption(props): HTMLLabelElement

Defined in: src/ui/widgets/propertygrid.tsx:27

Renders the caption (label) for a property field, including the required marker and localized title/hint text.

Parameters

props

Caption rendering props.

idPrefix?

string

item

Pick<PropertyItem, "name" | "hint" | "labelWidth" | "required" | "title">

localTextPrefix?

string

Returns

HTMLLabelElement

The label element for the field.