Skip to main content

Select Field

type SelectFieldStructure = {
type: 'select';
optionsList: (trackedFieldValue: any) => {
label: string;
value: any;
isDisabled?: boolean;
[key: string]: any;
}[];
fieldToTrack?: FieldTrackerInterface;
conditionalRender?: {
conditionalFields: ConditionalType[];
conditionalRulesChainOption?: 'AND' | 'OR';
};
fieldWrapperProperties?: JSX.IntrinsicElements['div'];
fieldLabel?: (name: string) => ReactNode;
placeholder?: string;
validations?: Validation;
ariaRequired?: boolean;
disabled?: boolean;
} & DropdownProps
Live Editor
Result