Skip to main content

RegisterFormInputComponent

Registers a custom FormInputComponent which can be used to control the argument inputs of a ConfigurableOperationDef (e.g. CollectionFilter, ShippingMethod etc.) or for a custom field.

Example

providers.ts
import { registerFormInputComponent } from '@vendure/admin-ui/core';export default [    registerFormInputComponent('my-custom-input', MyCustomFieldControl), // [!code highlight]];

This input component can then be used in a custom field:

Example

src/vendure-config.ts
import { VendureConfig } from '@vendure/core';const config: VendureConfig = {  // ...  customFields: {    ProductVariant: [      {        name: 'rrp',        type: 'int',        ui: { component: 'my-custom-input' }, // [!code highlight]      },    ]  }}

or with an argument of a ConfigurableOperationDef:

Example

Ts
args: {  rrp: { type: 'int', ui: { component: 'my-custom-input' } },}
Signature
function registerFormInputComponent(id: string, component: Type<FormInputComponent>): void

Parameters

id

parameterstring

component

parameterType<FormInputComponent>
Was this chapter helpful?
Report Issue
Edited Feb 3, 2026·Edit this page