Skip to main content

Interface: RadioGroupProperties

Defined in: src/components/AddSiteForm/RadioGroup.tsx:65

Properties for the RadioGroup component.

Hierarchyโ€‹

View Summary

Extendsโ€‹

Propertiesโ€‹

error?โ€‹

readonly optional error?: string;

Defined in: shared/types/componentProps.ts:183

Error message to display when validation fails

Inherited fromโ€‹

FieldWrapperPropsBase.error;

helpText?โ€‹

readonly optional helpText?: string;

Defined in: shared/types/componentProps.ts:185

Help text to provide guidance to users

Inherited fromโ€‹

FieldWrapperPropsBase.helpText;

idโ€‹

readonly id: string;

Defined in: shared/types/componentProps.ts:187

Unique identifier for the field (required for accessibility)

Inherited fromโ€‹

FieldWrapperPropsBase.id;

labelโ€‹

readonly label: string;

Defined in: shared/types/componentProps.ts:189

Label text to display for the field

Inherited fromโ€‹

FieldWrapperPropsBase.label;

required?โ€‹

readonly optional required?: boolean;

Defined in: shared/types/componentProps.ts:191

Whether the field is required for form submission

Inherited fromโ€‹

FieldWrapperPropsBase.required;

disabled?โ€‹

readonly optional disabled?: boolean;

Defined in: src/components/AddSiteForm/RadioGroup.tsx:67

Whether the radio group is disabled


nameโ€‹

readonly name: string;

Defined in: src/components/AddSiteForm/RadioGroup.tsx:69

Name attribute for radio inputs (should be unique within the form)


onChangeโ€‹

readonly onChange: (value: string) => void;

Defined in: src/components/AddSiteForm/RadioGroup.tsx:71

Callback function triggered when selection changes

Parametersโ€‹

valueโ€‹

string

Returnsโ€‹

void


optionsโ€‹

readonly options: RadioOption[];

Defined in: src/components/AddSiteForm/RadioGroup.tsx:73

Array of radio options to display


valueโ€‹

readonly value: string;

Defined in: src/components/AddSiteForm/RadioGroup.tsx:75

Currently selected value