function
Component
Component selects an application component registered in admin/src/admin.config.ts. Optionally pass a settings object; the component registration must provide a decoder to check it. Omit settings when the component does not use them.
Arguments
| Argument | Type | Description |
|---|---|---|
key | string | The key value. |
config | []store.Value | The config value. |
Returns
The declared result.
ComponentRefFull signature
func Component(
key string,
config ...store.Value,
) ComponentRefRelated types
ValueAn immutable scalar, object, list, or populated document value.
ComponentRefComponentRef selects a custom admin component and its optional settings. It changes the UI without changing how the field's value is stored or typed.