diff --git a/docs/frontend-system/architecture/03-extensions.md b/docs/frontend-system/architecture/03-extensions.md index 5fca53f420..af87a89c05 100644 --- a/docs/frontend-system/architecture/03-extensions.md +++ b/docs/frontend-system/architecture/03-extensions.md @@ -145,11 +145,11 @@ By default all extension data is required, meaning that the extension factory mu const extension = createExtension({ // ... output: { - element: coreExtensionData.reactElement.option(), + element: coreExtensionData.reactElement.optional(), }, factory() { return { - element: Math.random() < 0.5 ?
Hello World
: undefined, + element: , }; }, }); @@ -157,23 +157,97 @@ const extension = createExtension({ ## Extension Inputs - +```tsx + // ... + factory({ inputs }) { + return { + element: ( + + ), + }; + }, +``` ## Extension Configuration