Skip to main content
Version: Next

FieldExtensionOptions

Home > @backstage/plugin-scaffolder-react > FieldExtensionOptions

Type for the Custom Field Extension with the name and components and validation function.

Signature:

export type FieldExtensionOptions<TFieldReturnValue = unknown, TUiOptions = unknown> = {
name: string;
component: (props: FieldExtensionComponentProps<TFieldReturnValue, TUiOptions>) => JSX.Element | null;
validation?: CustomFieldValidator<TFieldReturnValue, TUiOptions>;
schema?: CustomFieldExtensionSchema;
};

References: FieldExtensionComponentProps, CustomFieldValidator, CustomFieldExtensionSchema